OnRampPaymentAvailability class

Describes availability of cryptocurrency purchase through an on-ramp provider

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

OnRampPaymentAvailability({required bool isAllowed, required bool isPurchaseAllowed, required List<OnRampPaymentMethod> methods, required String countryCode, required String state})
const

Properties

countryCode → String
countryCode A two-letter ISO 3166-1 alpha-2 country code of the current user's country
final
hashCode → int
The hash code for this object.
no setteroverride
isAllowed → bool
isAllowed True, if the current user can use the provider
final
isPurchaseAllowed → bool
isPurchaseAllowed True, if the current user can purchase through the provider
final
methods → List<OnRampPaymentMethod>
methods The list of available payment methods
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → String
state Code of the state of the current user; may be empty if unknown
final

Methods

copyWith({bool? isAllowed, bool? isPurchaseAllowed, List<OnRampPaymentMethod>? methods, String? countryCode, String? state}) → OnRampPaymentAvailability

Available on OnRampPaymentAvailability, provided by the OnRampPaymentAvailabilityExtensions extension

getConstructor() → String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, dynamic>? json) → OnRampPaymentAvailability?

Constants

constructor → const String