various-ways-to-invoke-functions-in-dart
Installation
SKILL.md
Various Ways to Invoke Functions in Dart
There are multiple ways to call a Function in Dart.
The examples below will assume the following function:
void myFunction(int a, int b, {int? c, int? d}) {
print((a, b, c, d));
}
But recently I learned that you can call a functions positional arguments in any order mixed with the named arguments. 🤯