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