GithubIssueModelPatterns extension
Adds pattern-matching-related methods to GithubIssueModel.
Methods
-
map<
TResult extends Object?> (TResult $default(_GithubIssueModel value)) → TResult -
Available on GithubIssueModel, provided by the GithubIssueModelPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_GithubIssueModel value)?) → TResult? -
Available on GithubIssueModel, provided by the GithubIssueModelPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_GithubIssueModel value)?, {required TResult orElse()}) → TResult -
Available on GithubIssueModel, provided by the GithubIssueModelPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(int? id, int? number, String? title, String? body, String? bodyHtml, String? bodyText, String? state, String? stateReason, String? activeLockReason, String? authorAssociation, String? nodeId, bool draft, bool locked, int commentsCount, GithubRepositoryModelRef? repository, GithubUserModel? user, GithubUserModel? assignee, List< GithubUserModel> assignees, GithubUserModel? closedBy, List<GithubLabelValue> labels, ModelUri? url, ModelUri? htmlUrl, ModelUri? commentsUrl, ModelUri? eventsUrl, ModelUri? labelsUrl, ModelUri? repositoryUrl, ModelUri? timelineUrl, GithubReactionValue? reactions, ModelTimestamp? closedAt, ModelTimestamp createdAt, ModelTimestamp updatedAt, bool fromServer)?, {required TResult orElse()}) → TResult -
Available on GithubIssueModel, provided by the GithubIssueModelPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
when<
TResult extends Object?> (TResult $default(int? id, int? number, String? title, String? body, String? bodyHtml, String? bodyText, String? state, String? stateReason, String? activeLockReason, String? authorAssociation, String? nodeId, bool draft, bool locked, int commentsCount, GithubRepositoryModelRef? repository, GithubUserModel? user, GithubUserModel? assignee, List< GithubUserModel> assignees, GithubUserModel? closedBy, List<GithubLabelValue> labels, ModelUri? url, ModelUri? htmlUrl, ModelUri? commentsUrl, ModelUri? eventsUrl, ModelUri? labelsUrl, ModelUri? repositoryUrl, ModelUri? timelineUrl, GithubReactionValue? reactions, ModelTimestamp? closedAt, ModelTimestamp createdAt, ModelTimestamp updatedAt, bool fromServer)) → TResult -
Available on GithubIssueModel, provided by the GithubIssueModelPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(int? id, int? number, String? title, String? body, String? bodyHtml, String? bodyText, String? state, String? stateReason, String? activeLockReason, String? authorAssociation, String? nodeId, bool draft, bool locked, int commentsCount, GithubRepositoryModelRef? repository, GithubUserModel? user, GithubUserModel? assignee, List< GithubUserModel> assignees, GithubUserModel? closedBy, List<GithubLabelValue> labels, ModelUri? url, ModelUri? htmlUrl, ModelUri? commentsUrl, ModelUri? eventsUrl, ModelUri? labelsUrl, ModelUri? repositoryUrl, ModelUri? timelineUrl, GithubReactionValue? reactions, ModelTimestamp? closedAt, ModelTimestamp createdAt, ModelTimestamp updatedAt, bool fromServer)?) → TResult? -
Available on GithubIssueModel, provided by the GithubIssueModelPatterns extension
A variant ofwhen
that fallback to returningnull