onHandlerException method

  1. @override
void onHandlerException(
  1. RawData? object,
  2. Pointer<Void> nativeData,
  3. Object e,
  4. StackTrace stackTrace,
)

Implementation

@override
void onHandlerException(RawData? object, Pointer<Void> nativeData, Object e,
    StackTrace stackTrace) {
  _onAnimatedImageProviderComplete(nativeData, newNativeBytes(nullptr, 0));
  if (object != null) {
    object.errorHandler.onError(e, stackTrace);
  } else {
    throw e;
  }
}