when<TResult extends Object?> method
TResult
when<TResult extends Object?>({
- required TResult loading(),
- required TResult error(
- Object? error
- required TResult data(
- T value,
- bool isDone
inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function() loading,
required TResult Function(Object? error) error,
required TResult Function(T value, bool isDone) data,
}) =>
throw _privateConstructorUsedError;