close
0

What is the difference between named and positional parameters in Dart?

avatar
asked 04-09-2021

1 Answers


0
sayHello([String name = ' World!']) {
  print('Hello, ${name}');
}

void main() {
  sayHello('Govind');
}
avatar
answered 04-09-2021