CardId.fromReview constructor
CardId.fromReview(
- Review review
Implementation
factory CardId.fromReview(Review review) {
final id = review.master;
final frontJoin = review.combination!.front!.join(',');
final backJoin = review.combination!.back!.join(',');
return CardId(
id: id,
frontJoin: frontJoin,
backJoin: backJoin,
time: review.ts,
uniqueId: '$id#$frontJoin@$backJoin');
}