DEV Community

Cover image for Function in dart
Coder
Coder

Posted on

Function in dart

void main() {
  print('Om Namah Shivay');
  print(info(age: 16));
}
//function
String info({String? name, required int age}) {
  return "my name is ${name != null ? name : 'XYZ'} and  i am $age year old";
}

Enter fullscreen mode Exit fullscreen mode

I understood

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more