when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult serverError(
    1. int code,
    2. List<String> msg,
    3. String data
    ),
  2. required TResult networkError(),
  3. required TResult unknownError(
    1. int code,
    2. String msg,
    3. String data
    ),
  4. required TResult noData(),
  5. required TResult nothing(),
  6. required TResult login(
    1. List<String> msg,
    2. String data,
    3. String codeName
    ),
  7. required TResult warningError(
    1. int code,
    2. List<String> msg,
    3. String data
    ),
  8. required TResult crashError(
    1. int code,
    2. dynamic msg,
    3. String data
    ),
})
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;