9. Dart - Function Named Parameters
Named parameters allows us to put parameters in any order as long as the function specified that it uses named parameters.
Making a function use named parameters:
function( {String name, String job} ){
}
// put brackets around the parameters.
Using named parameters:
function(String: "food cooker", String: "bob")
Comments
Post a Comment