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