maybeWhen<TResult extends Object?> method
TResult
maybeWhen<TResult extends Object?>({
- TResult serverError()?,
- TResult networkError()?,
- TResult unknownError()?,
- TResult noData()?,
- TResult nothing()?,
- TResult login()?,
- TResult warningError()?,
- TResult crashError()?,
- 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;