LearningObjectivePatterns extension
Adds pattern-matching-related methods to LearningObjective.
Methods
-
map<
TResult extends Object?> (TResult $default(_LearningObjective value)) → TResult -
Available on LearningObjective, provided by the LearningObjectivePatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_LearningObjective value)?) → TResult? -
Available on LearningObjective, provided by the LearningObjectivePatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_LearningObjective value)?, {required TResult orElse()}) → TResult -
Available on LearningObjective, provided by the LearningObjectivePatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String id, String orgId, String assignmentId, String targetMastery, DateTime? targetDate, String status, String createdBy, DateTime createdAt, DateTime updatedAt)?, {required TResult orElse()}) → TResult -
Available on LearningObjective, provided by the LearningObjectivePatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(String id, String orgId, String assignmentId, String targetMastery, DateTime? targetDate, String status, String createdBy, DateTime createdAt, DateTime updatedAt)) → TResult -
Available on LearningObjective, provided by the LearningObjectivePatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String id, String orgId, String assignmentId, String targetMastery, DateTime? targetDate, String status, String createdBy, DateTime createdAt, DateTime updatedAt)?) → TResult? -
Available on LearningObjective, provided by the LearningObjectivePatterns extension
A variant ofwhenthat fallback to returningnull