GithubIssueModelPatterns extension

Adds pattern-matching-related methods to GithubIssueModel.

on

Methods

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

Available on GithubIssueModel, provided by the GithubIssueModelPatterns extension

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

Available on GithubIssueModel, provided by the GithubIssueModelPatterns extension

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

Available on GithubIssueModel, provided by the GithubIssueModelPatterns extension

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

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