call<X> method
Future<R>
call<X>(
- DynCall<
R, X> ? dynCall, - Map<
String, String?> ? parameters, - SysProgressListener? onProgress
override
Implementation
@override
Future<R> call<X>(DynCall<R, X>? dynCall, Map<String, String?>? parameters,
SysProgressListener? onProgress) {
var dynCallCast = dynCall as DynCall<R, T>?;
if (onProgress != null) {
return function(dynCallCast, parameters).then((value) {
try {
onProgress(1, 1, 1.0, false);
} catch (e, s) {
print(e);
print(s);
}
return value;
});
} else {
return function(dynCallCast, parameters);
}
}