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

Popular posts from this blog

2. FreeCodeCamp - Dynamic Programming - Learn to Solve Algorithmic Problems & Coding Challenges

20. Data Analytics - Analyze Data to Answer Questions - Week 1

3. Algorithms - Selection Sort