Dart 类 , 用于表示 将来 某个时间 可能出现的结果 ;
http.Get 返回值是 Future , 其中的 http.Response 泛型中 , 封装了 HTTP...Dart 类 , 用于表示 将来 某个时间 可能出现的结果 ;
http.Get 返回值是 Future , 其中的 http.Response 泛型中 , 封装了 HTTP..., 会自动调用该 then 方法
/// 传入 Future 的泛型 CommonModel 对象作为参数
httpGet().then...then 方法 , 传入 Future 的泛型 CommonModel 对象作为参数 ;
最后获取到返回值后 , 将返回值设置到 httpGetResult 成员中 ;
调用 setState 方法..., 会自动调用该 then 方法
/// 传入 Future 的泛型 CommonModel 对象作为参数
httpGet().then