LearningSession class abstract

Available extensions
Annotations

Constructors

LearningSession({required String id, required String userId, String? topicId, String? domainId, required String sessionType, required DateTime startedAt, DateTime? endedAt, int? durationMinutes, String? kolbPhase, @Default(false) bool reflectionCompleted, String? reflectionText, int? confidenceBefore, int? confidenceAfter, List<String>? keyTakeaways, @Default(false) bool isValidation, String? validationTarget, String? validationResult})
const
factory

Properties

confidenceAfter int?
no setterinherited
confidenceBefore int?
no setterinherited
copyWith → $LearningSessionCopyWith<LearningSession>
Create a copy of LearningSession with the given fields replaced by the non-null parameter values.
no setterinherited
domainId String?
no setterinherited
durationMinutes int?
no setterinherited
endedAt DateTime?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
no setterinherited
isValidation bool
no setterinherited
keyTakeaways List<String>?
no setterinherited
kolbPhase String?
no setterinherited
reflectionCompleted bool
no setterinherited
reflectionText String?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionType String
no setterinherited
startedAt DateTime
no setterinherited
topicId String?
no setterinherited
userId String
no setterinherited
validationResult String?
no setterinherited
validationTarget String?
no setterinherited

Methods

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

Available on LearningSession, provided by the LearningSessionPatterns extension

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

Available on LearningSession, provided by the LearningSessionPatterns extension

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

Available on LearningSession, provided by the LearningSessionPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String id, String userId, String? topicId, String? domainId, String sessionType, DateTime startedAt, DateTime? endedAt, int? durationMinutes, String? kolbPhase, bool reflectionCompleted, String? reflectionText, int? confidenceBefore, int? confidenceAfter, List<String>? keyTakeaways, bool isValidation, String? validationTarget, String? validationResult)?, {required TResult orElse()}) → TResult

Available on LearningSession, provided by the LearningSessionPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String id, String userId, String? topicId, String? domainId, String sessionType, DateTime startedAt, DateTime? endedAt, int? durationMinutes, String? kolbPhase, bool reflectionCompleted, String? reflectionText, int? confidenceBefore, int? confidenceAfter, List<String>? keyTakeaways, bool isValidation, String? validationTarget, String? validationResult)) → TResult

Available on LearningSession, provided by the LearningSessionPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String id, String userId, String? topicId, String? domainId, String sessionType, DateTime startedAt, DateTime? endedAt, int? durationMinutes, String? kolbPhase, bool reflectionCompleted, String? reflectionText, int? confidenceBefore, int? confidenceAfter, List<String>? keyTakeaways, bool isValidation, String? validationTarget, String? validationResult)?) → TResult?

Available on LearningSession, provided by the LearningSessionPatterns extension

A variant of when that fallback to returning null

Operators

operator ==(Object other) bool
The equality operator.
inherited