PaymentMethodRef<T extends PaymentMethodDetails> class

Annotations
  • @Freezed()

Constructors

PaymentMethodRef.details(@PaymentMethodDetailsConverter<PaymentMethodDetails>() T value)
const
factory
PaymentMethodRef.fromJson(Map<String, dynamic> json)
factory
PaymentMethodRef.id(String id)
Config parameters for card payment method.
const
factory
PaymentMethodRef.none()
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult id(_PaymentMethodFactory<T> value), required TResult details(_PaymentMethodDetails<T> value), required TResult none(_PaymentMethodNoneFactory<T> value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? id(_PaymentMethodFactory<T> value)?, TResult? details(_PaymentMethodDetails<T> value)?, TResult? none(_PaymentMethodNoneFactory<T> value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult id(_PaymentMethodFactory<T> value)?, TResult details(_PaymentMethodDetails<T> value)?, TResult none(_PaymentMethodNoneFactory<T> value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult id(String id)?, TResult details(T value)?, TResult none()?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult id(String id), required TResult details(T value), required TResult none()}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? id(String id)?, TResult? details(T value)?, TResult? none()?}) → TResult?
inherited

Operators

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