when<TResult extends Object?> method
TResult
when<TResult extends Object?>({
- required TResult initial(),
- required TResult loading(),
- required TResult failure(
- AppException exception
- required TResult success(
- String? message
inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function() initial,
required TResult Function() loading,
required TResult Function(AppException exception) failure,
required TResult Function(String? message) success,
}) =>
throw _privateConstructorUsedError;