GithubMilestoneValuePatterns extension

Adds pattern-matching-related methods to GithubMilestoneValue.

on

Methods

map<TResult extends Object?>(TResult $default(_GithubMilestoneValue value)) → TResult

Available on GithubMilestoneValue, provided by the GithubMilestoneValuePatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_GithubMilestoneValue value)?) → TResult?

Available on GithubMilestoneValue, provided by the GithubMilestoneValuePatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_GithubMilestoneValue value)?, {required TResult orElse()}) → TResult

Available on GithubMilestoneValue, provided by the GithubMilestoneValuePatterns extension

A variant of map that fallback to returning orElse.
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 of when that fallback to an orElse 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

A switch-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 of when that fallback to returning null