onFailure method

  1. @override
void onFailure(
  1. void callback(
    1. ErrorMessage errorMessage
    )
)
override

Calls the provided callback if the result is a failure.

callback is the function to be called with the error message if the result is a failure.

Implementation

@override
void onFailure(void Function(ErrorMessage errorMessage) callback) =>
    callback.call(_error);