ReviewCard class abstract
- Available extensions
- Annotations
Constructors
-
ReviewCard({required String id, required String userId, required String topicId, String? chunkId, required String cardType, required String front, required String back, required double easinessFactor, required int intervalDays, required int repetitions, required DateTime nextReviewAt, DateTime? lastReviewAt, int? lastQuality, double? stability, double? difficulty, @Default('new') String state, double? lastElapsedDays, int? scheduledDays, @Default('sm2') String algorithm, Map<
String, dynamic> ? cardData}) -
constfactory
Properties
- algorithm → String
-
no setterinherited
- back → String
-
no setterinherited
-
cardData
→ Map<
String, dynamic> ? -
no setterinherited
- cardType → String
-
no setterinherited
- chunkId → String?
-
no setterinherited
-
copyWith
→ $ReviewCardCopyWith<
ReviewCard> -
Create a copy of ReviewCard
with the given fields replaced by the non-null parameter values.
no setterinherited
- difficulty → double?
-
no setterinherited
- easinessFactor → double
-
no setterinherited
- front → String
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
no setterinherited
- intervalDays → int
-
no setterinherited
- lastElapsedDays → double?
-
no setterinherited
- lastQuality → int?
-
no setterinherited
- lastReviewAt → DateTime?
-
no setterinherited
- nextReviewAt → DateTime
-
no setterinherited
- repetitions → int
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scheduledDays → int?
-
no setterinherited
- stability → double?
-
no setterinherited
- state → String
-
no setterinherited
- topicId → String
-
no setterinherited
- userId → String
-
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_ReviewCard value)) → TResult -
Available on ReviewCard, provided by the ReviewCardPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ReviewCard value)?) → TResult? -
Available on ReviewCard, provided by the ReviewCardPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_ReviewCard value)?, {required TResult orElse()}) → TResult -
Available on ReviewCard, provided by the ReviewCardPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String id, String userId, String topicId, String? chunkId, String cardType, String front, String back, double easinessFactor, int intervalDays, int repetitions, DateTime nextReviewAt, DateTime? lastReviewAt, int? lastQuality, double? stability, double? difficulty, String state, double? lastElapsedDays, int? scheduledDays, String algorithm, Map< String, dynamic> ? cardData)?, {required TResult orElse()}) → TResult -
Available on ReviewCard, provided by the ReviewCardPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
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? chunkId, String cardType, String front, String back, double easinessFactor, int intervalDays, int repetitions, DateTime nextReviewAt, DateTime? lastReviewAt, int? lastQuality, double? stability, double? difficulty, String state, double? lastElapsedDays, int? scheduledDays, String algorithm, Map< String, dynamic> ? cardData)) → TResult -
Available on ReviewCard, provided by the ReviewCardPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String id, String userId, String topicId, String? chunkId, String cardType, String front, String back, double easinessFactor, int intervalDays, int repetitions, DateTime nextReviewAt, DateTime? lastReviewAt, int? lastQuality, double? stability, double? difficulty, String state, double? lastElapsedDays, int? scheduledDays, String algorithm, Map< String, dynamic> ? cardData)?) → TResult? -
Available on ReviewCard, provided by the ReviewCardPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited