ReportViewPatterns extension
Adds pattern-matching-related methods to ReportView.
- on
Methods
-
map<
TResult extends Object?> (TResult $default(_ReportView value)) → TResult -
Available on ReportView, provided by the ReportViewPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ReportView value)?) → TResult? -
Available on ReportView, provided by the ReportViewPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_ReportView value)?, {required TResult orElse()}) → TResult -
Available on ReportView, provided by the ReportViewPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String $type, int id, int eventId, ReportViewStatus status, SubjectView subject, ReasonType reportType, String? priorityLevel, int? priorityScore, int? priorityTargetMinutes, int? resolutionTimeSec, bool? priorityTargetMet, String reportedBy, SubjectView reporter, String? comment, DateTime createdAt, DateTime? updatedAt, DateTime? queuedAt, List< int> ? actionEventIds, List<ModEventView> ? actions, String? actionNote, SubjectStatusView? subjectStatus, ReportAssignment? assignment, QueueView? queue, bool? isMuted, bool isAutomated, Map<String, dynamic> ? $unknown)?, {required TResult orElse()}) → TResult -
Available on ReportView, provided by the ReportViewPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(String $type, int id, int eventId, ReportViewStatus status, SubjectView subject, ReasonType reportType, String? priorityLevel, int? priorityScore, int? priorityTargetMinutes, int? resolutionTimeSec, bool? priorityTargetMet, String reportedBy, SubjectView reporter, String? comment, DateTime createdAt, DateTime? updatedAt, DateTime? queuedAt, List< int> ? actionEventIds, List<ModEventView> ? actions, String? actionNote, SubjectStatusView? subjectStatus, ReportAssignment? assignment, QueueView? queue, bool? isMuted, bool isAutomated, Map<String, dynamic> ? $unknown)) → TResult -
Available on ReportView, provided by the ReportViewPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String $type, int id, int eventId, ReportViewStatus status, SubjectView subject, ReasonType reportType, String? priorityLevel, int? priorityScore, int? priorityTargetMinutes, int? resolutionTimeSec, bool? priorityTargetMet, String reportedBy, SubjectView reporter, String? comment, DateTime createdAt, DateTime? updatedAt, DateTime? queuedAt, List< int> ? actionEventIds, List<ModEventView> ? actions, String? actionNote, SubjectStatusView? subjectStatus, ReportAssignment? assignment, QueueView? queue, bool? isMuted, bool isAutomated, Map<String, dynamic> ? $unknown)?) → TResult? -
Available on ReportView, provided by the ReportViewPatterns extension
A variant ofwhenthat fallback to returningnull