Functions as arguments (with tear-off)¶
Functions are first-class citizens in Dart.
They can be passed directly as arguments, provided that the type signatures match.
This is known as a function tear-off.
Since Dart 2.15, we can use constructor tear-offs too. 👍
Previous | Next |
---|---|
How to define type aliases in Dart | Using build_runner in watch mode |
Last update:
18 septembre 2023
Created: 18 septembre 2023
Created: 18 septembre 2023