when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult initial(),
  2. required TResult loading(),
  3. required TResult failure(
    1. AppException exception
    ),
  4. required TResult success(
    1. String? message
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function() initial,
  required TResult Function() loading,
  required TResult Function(AppException exception) failure,
  required TResult Function(String? message) success,
}) =>
    throw _privateConstructorUsedError;