September 2019
Beginner
512 pages
12h 52m
English
A function can have two types of parameters: optional and required. Additionally, as with most modern programming languages, these parameters can be named on call to make the code more readable.
The parameter type doesn't need to be specified; in this case, the parameter assumes the dynamic type:
sayHello(String name, String additionalMessage) => "Hello $name. $additionalMessage";
Read now
Unlock full access