nextCard method Null safety

DRCard? nextCard()

Implementation

DRCard? nextCard() {
  final nextCardId = _nextCardId();
  if (nextCardId == null) {
    return null;
  }
  return _getCard(nextCardId);
}