TenvioMatrixItemInputPatterns extension
Adds pattern-matching-related methods to TenvioMatrixItemInput.
Methods
-
map<
TResult extends Object?> (TResult $default(_TenvioMatrixItemInput value)) → TResult -
Available on TenvioMatrixItemInput, provided by the TenvioMatrixItemInputPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_TenvioMatrixItemInput value)?) → TResult? -
Available on TenvioMatrixItemInput, provided by the TenvioMatrixItemInputPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_TenvioMatrixItemInput value)?, {required TResult orElse()}) → TResult -
Available on TenvioMatrixItemInput, provided by the TenvioMatrixItemInputPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String? id, String name, String? image, String code, double? weight, double? width, double? height, List< TenvioCustomPropertyInput> customProperties)?, {required TResult orElse()}) → TResult -
Available on TenvioMatrixItemInput, provided by the TenvioMatrixItemInputPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(String? id, String name, String? image, String code, double? weight, double? width, double? height, List< TenvioCustomPropertyInput> customProperties)) → TResult -
Available on TenvioMatrixItemInput, provided by the TenvioMatrixItemInputPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String? id, String name, String? image, String code, double? weight, double? width, double? height, List< TenvioCustomPropertyInput> customProperties)?) → TResult? -
Available on TenvioMatrixItemInput, provided by the TenvioMatrixItemInputPatterns extension
A variant ofwhenthat fallback to returningnull