Dart Named Parameters | RRTutors

Dart Named Parameters

Dart provides Named parameters while calling the functions

 

main(List<String> args) {

  var name = fullName(firstName: 'Chandu', lastName: 'Mouli');

  print(name);

}

 

fullName({String firstName, String lastName}) {

  return "$firstName $lastName";

}

Advertisements