Reputation: 3348
I wanted to declare async function as a variable in Dart? How I can achieve this ?
Upvotes: 0
Views: 127
Reputation: 1430
Future<void> Function() myAsyncFunc;
Future<void> anotherAsyncFunc() async => print('solution');
Upvotes: 1