whenOrNull<TResult extends Object?> method
TResult?
whenOrNull<TResult extends Object?>({
- TResult idle()?,
- TResult loading()?,
- TResult success(
- T data
- TResult failure(
- String reason
inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult Function()? idle,
TResult Function()? loading,
TResult Function(T data)? success,
TResult Function(String reason)? failure,
}) =>
throw _privateConstructorUsedError;