CheckoutResponse class Null safety


CheckoutResponse({required String message, required String? reference, required bool status, required CheckoutMethod method, required bool verify, PaymentCard? card, BankAccount? account})


account ↔ BankAccount?
The bank account used for the payment. Will be null if the customer didn't use bank account as a means of payment
read / write
card PaymentCard?
The card used for the payment. Will be null if the customer didn't use card payment
read / write
hashCode int
The hash code for this object.
read-only, inherited
message String
A user readable message. If the transaction was not successful, this returns the cause of the error.
read / write
method CheckoutMethod
The means of payment. It may return or CheckoutMethod.card
read / write
reference String?
Transaction reference. Might be null for failed transaction transactions
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
status bool
The status of the transaction. A successful response returns true and false otherwise
read / write
verify bool
If the transaction should be verified. See This is usually false for transactions that didn't reach Paystack before terminating
read / write


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.