maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult serverError(
    1. int code,
    2. List<String> msg,
    3. String data
    )?,
  2. TResult networkError()?,
  3. TResult unknownError(
    1. int code,
    2. String msg,
    3. String data
    )?,
  4. TResult noData()?,
  5. TResult nothing()?,
  6. TResult login(
    1. List<String> msg,
    2. String data,
    3. String codeName
    )?,
  7. TResult warningError(
    1. int code,
    2. List<String> msg,
    3. String data
    )?,
  8. TResult crashError(
    1. int code,
    2. dynamic msg,
    3. String data
    )?,
  9. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(int code, List<String> msg, String data)? serverError,
  TResult Function()? networkError,
  TResult Function(int code, String msg, String data)? unknownError,
  TResult Function()? noData,
  TResult Function()? nothing,
  TResult Function(List<String> msg, String data, String codeName)? login,
  TResult Function(int code, List<String> msg, String data)? warningError,
  TResult Function(int code, dynamic msg, String data)? crashError,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;