async keyword Future<dynamic> problem in flutter/dart . I just want to know how the code is generating an error here below
I dont know what is happening in this portion of code: Future fnct() { print("inside fnct()"); return Future.delayed(Duration(seconds:4),()=>"hello"); } Future fnct2() async { fnct().then((x){ print("inside then()"); }); here, this code works perfectly fine even without use of await keyword .…