when<TResult extends Object?> method
TResult
when<TResult extends Object?>({
- required TResult idle(),
- required TResult loading(),
- required TResult success(
- T data
- required TResult failure(
- 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;