call<X> method

  1. @override
Future<R> call<X>(
  1. DynCall<R, X>? dynCall,
  2. Map<String, String?>? parameters,
  3. 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);
  }
}