handleFailure method

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

Implementation

@override
void handleFailure(String? errorMessage, void Function(String? error)? onError) {
  server?.close(force: true);
  super.handleFailure(errorMessage, onError);
}