CardId.fromState constructor Null safety

CardId.fromState(
  1. CardState state
)

Implementation

factory CardId.fromState(CardState state) {
  final id = state.master;
  final frontJoin = state.combination!.front!.join(',');
  final backJoin = state.combination!.back!.join(',');
  return CardId(
      id: id,
      frontJoin: frontJoin,
      backJoin: backJoin,
      time: state.lastReviewed,
      uniqueId: '$id#$frontJoin@$backJoin');
}