onError property Null safety

(dynamic Function?(dynamic error, dynamic params)?) onError
read / write

future 报错 时触发,参数为 data 和 params

Implementation

Function(dynamic error, dynamic? params)? onError;