GithubActionsStepValuePatterns extension
Adds pattern-matching-related methods to GithubActionsStepValue.
Methods
-
map<
TResult extends Object?> (TResult $default(_GithubActionsStepValue value)) → TResult -
Available on GithubActionsStepValue, provided by the GithubActionsStepValuePatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_GithubActionsStepValue value)?) → TResult? -
Available on GithubActionsStepValue, provided by the GithubActionsStepValuePatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_GithubActionsStepValue value)?, {required TResult orElse()}) → TResult -
Available on GithubActionsStepValue, provided by the GithubActionsStepValuePatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(int? number, String? name, String? status, String? conclusion, ModelTimestamp? startedAt, ModelTimestamp? completedAt)?, {required TResult orElse()}) → TResult -
Available on GithubActionsStepValue, provided by the GithubActionsStepValuePatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(int? number, String? name, String? status, String? conclusion, ModelTimestamp? startedAt, ModelTimestamp? completedAt)) → TResult -
Available on GithubActionsStepValue, provided by the GithubActionsStepValuePatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(int? number, String? name, String? status, String? conclusion, ModelTimestamp? startedAt, ModelTimestamp? completedAt)?) → TResult? -
Available on GithubActionsStepValue, provided by the GithubActionsStepValuePatterns extension
A variant ofwhenthat fallback to returningnull