BuildAttributesDtoPatterns extension
Adds pattern-matching-related methods to BuildAttributesDto.
Methods
-
map<
TResult extends Object?> (TResult $default(_BuildAttributesDto value)) → TResult -
Available on BuildAttributesDto, provided by the BuildAttributesDtoPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_BuildAttributesDto value)?) → TResult? -
Available on BuildAttributesDto, provided by the BuildAttributesDtoPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_BuildAttributesDto value)?, {required TResult orElse()}) → TResult -
Available on BuildAttributesDto, provided by the BuildAttributesDtoPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String version, BuildProcessingState processingState, String? uploadedDate, bool isExpired, bool? doesUseNonExemptEncryption)?, {required TResult orElse()}) → TResult -
Available on BuildAttributesDto, provided by the BuildAttributesDtoPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(String version, BuildProcessingState processingState, String? uploadedDate, bool isExpired, bool? doesUseNonExemptEncryption)) → TResult -
Available on BuildAttributesDto, provided by the BuildAttributesDtoPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String version, BuildProcessingState processingState, String? uploadedDate, bool isExpired, bool? doesUseNonExemptEncryption)?) → TResult? -
Available on BuildAttributesDto, provided by the BuildAttributesDtoPatterns extension
A variant ofwhenthat fallback to returningnull