CardData constructor Null safety

CardData(
  1. {required String number,
  2. required int expiryMonth,
  3. required int expiryYear,
  4. required String cvv}
)

Implementation

CardData({required String number, required int expiryMonth, required int expiryYear, required String cvv})
    : this._number = number,
      this._expiryMonth = expiryMonth,
      this._expiryYear = expiryYear,
      this._cvv = cvv;