transformError method

  1. @protected
BlocError? transformError(
  1. dynamic error,
  2. StackTrace stackTrace
)

Transforms the error before it is emitted.

Implementation

@protected
BlocError? transformError(dynamic error, StackTrace stackTrace) {
  return BlocError(source: error, stackTrace: stackTrace);
}