handleFailure method

void handleFailure(
  1. String? errorMessage,
  2. void onError(
    1. String? error
    )?
)

Implementation

void handleFailure(
  String? errorMessage,
  void Function(String? error)? onError,
) {
  onError?.call(errorMessage);
}