ifError method

void ifError(
  1. void callback(
    1. String error,
    2. String message
    )
)

Implementation

void ifError(void Function(String error, String message) callback) {
  if (this case ApiError<T> value) callback(value.error, value.message);
}