maybeWhen<TResult extends Object?> method
Null safety
- {TResult object( )?,
- TResult map( )?,
- TResult string( )?,
- TResult bool( )?,
- TResult double( )?,
- TResult int( )?,
- TResult num( )?,
- TResult dateTime( )?,
- TResult duration( )?,
- TResult color( )?,
- required TResult orElse(
@optionalTypeArgs, inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function(String key, String? description, Object? value)? object,
TResult Function(
String key, String? description, Map<String, Object?>? value)?
map,
TResult Function(String key, String? description, String? value)? string,
TResult Function(String key, String? description, bool? value)? bool,
TResult Function(String key, String? description, double? value)? double,
TResult Function(String key, String? description, int? value)? int,
TResult Function(String key, String? description, num? value)? num,
TResult Function(String key, String? description, DateTime? value)?
dateTime,
TResult Function(String key, String? description, Duration? value)?
duration,
TResult Function(String key, String? description, Color? value)? color,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;