Checkout constructor

Checkout({
  1. required String publicKey,
  2. required String currency,
  3. required double amount,
  4. String? email,
  5. String? lastName,
  6. String? firstName,
})

Implementation

Checkout(
    {required String publicKey,
    required String currency,
    required double amount,
    String? email,
    String? lastName,
    String? firstName}) {
  this.publicKey = publicKey;
  this.amount = amount;
  this.currency = currency;
  this.firstName = firstName!;
  this.lastName = lastName!;
  this.email = email!;
}