MANISH
MANISH

Reputation: 3348

Flutter : How to declare async function as a variable in Dart?

I wanted to declare async function as a variable in Dart? How I can achieve this ?

Upvotes: 0

Views: 127

Answers (1)

sonic
sonic

Reputation: 1430

Future<void> Function() myAsyncFunc; 
Future<void> anotherAsyncFunc() async => print('solution'); 

Upvotes: 1

Related Questions