CertificationModelPatterns extension
Adds pattern-matching-related methods to CertificationModel.
Methods
-
map<
TResult extends Object?> (TResult $default(_CertificationModel value)) → TResult -
Available on CertificationModel, provided by the CertificationModelPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_CertificationModel value)?) → TResult? -
Available on CertificationModel, provided by the CertificationModelPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_CertificationModel value)?, {required TResult orElse()}) → TResult -
Available on CertificationModel, provided by the CertificationModelPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String id, String orgId, String name, String? description, String? pathId, String? domainId, String? pathName, String? domainName, String requiredMastery, int? validityMonths, String createdBy, DateTime createdAt)?, {required TResult orElse()}) → TResult -
Available on CertificationModel, provided by the CertificationModelPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(String id, String orgId, String name, String? description, String? pathId, String? domainId, String? pathName, String? domainName, String requiredMastery, int? validityMonths, String createdBy, DateTime createdAt)) → TResult -
Available on CertificationModel, provided by the CertificationModelPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String id, String orgId, String name, String? description, String? pathId, String? domainId, String? pathName, String? domainName, String requiredMastery, int? validityMonths, String createdBy, DateTime createdAt)?) → TResult? -
Available on CertificationModel, provided by the CertificationModelPatterns extension
A variant ofwhenthat fallback to returningnull