when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult idle(),
  2. required TResult loading(),
  3. required TResult success(
    1. T data
    ),
  4. required TResult failure(
    1. String reason
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function() idle,
  required TResult Function() loading,
  required TResult Function(T data) success,
  required TResult Function(String reason) failure,
}) =>
    throw _privateConstructorUsedError;