GithubMilestoneValuePatterns extension
Adds pattern-matching-related methods to GithubMilestoneValue.
Methods
-
map<
TResult extends Object?> (TResult $default(_GithubMilestoneValue value)) → TResult -
Available on GithubMilestoneValue, provided by the GithubMilestoneValuePatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_GithubMilestoneValue value)?) → TResult? -
Available on GithubMilestoneValue, provided by the GithubMilestoneValuePatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_GithubMilestoneValue value)?, {required TResult orElse()}) → TResult -
Available on GithubMilestoneValue, provided by the GithubMilestoneValuePatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(int? id, int? number, String? state, String? title, String? description, String? nodeId, GithubUserModelRef? creator, int openIssuesCount, int closedIssuesCount, ModelUri? url, ModelUri? htmlUrl, ModelUri? labelsUrl, ModelTimestamp? dueOn, ModelTimestamp? closedAt, ModelTimestamp createdAt, ModelTimestamp updatedAt)?, {required TResult orElse()}) → TResult -
Available on GithubMilestoneValue, provided by the GithubMilestoneValuePatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
when<
TResult extends Object?> (TResult $default(int? id, int? number, String? state, String? title, String? description, String? nodeId, GithubUserModelRef? creator, int openIssuesCount, int closedIssuesCount, ModelUri? url, ModelUri? htmlUrl, ModelUri? labelsUrl, ModelTimestamp? dueOn, ModelTimestamp? closedAt, ModelTimestamp createdAt, ModelTimestamp updatedAt)) → TResult -
Available on GithubMilestoneValue, provided by the GithubMilestoneValuePatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(int? id, int? number, String? state, String? title, String? description, String? nodeId, GithubUserModelRef? creator, int openIssuesCount, int closedIssuesCount, ModelUri? url, ModelUri? htmlUrl, ModelUri? labelsUrl, ModelTimestamp? dueOn, ModelTimestamp? closedAt, ModelTimestamp createdAt, ModelTimestamp updatedAt)?) → TResult? -
Available on GithubMilestoneValue, provided by the GithubMilestoneValuePatterns extension
A variant ofwhen
that fallback to returningnull