when<TResult extends Object?> method
TResult
when<TResult extends Object?>({
- required TResult success(
- T data
- required TResult failure(
- String error
inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(T data) success,
required TResult Function(String error) failure,
}) =>
throw _privateConstructorUsedError;