Address class sealed

Available extensions
Annotations
  • @Freezed.new(fromJson: false, toJson: false)

Constructors

Address({required String address})
const
factory
Address.fromJson(String json)
factory

Properties

address → String
no setterinherited
copyWith → $AddressCopyWith<Address>
Create a copy of Address with the given fields replaced by the non-null parameter values.
no setterinherited
hash → String
no setter
hashCode → int
The hash code for this object.
no setteroverride
isBounceable → bool
no setter
isNonBounceable → bool
no setter
isRaw → bool
no setter
isValid → bool
no setter
isZeroState → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
workchain → int
Returns workchain id
no setter

Methods

compareTo(Address other) → int
Compares addresses address
map<TResult extends Object?>(TResult $default(_FromString value)) → TResult

Available on Address, provided by the AddressPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_FromString value)?) → TResult?

Available on Address, provided by the AddressPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_FromString value)?, {required TResult orElse()}) → TResult

Available on Address, provided by the AddressPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String address)?, {required TResult orElse()}) → TResult

Available on Address, provided by the AddressPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBounceable() → String
toEllipseString() → String
Returns address in ellipse form
toJson() → String
toRaw() → String
toString() → String
A string representation of this object.
override
when<TResult extends Object?>(TResult $default(String address)) → TResult

Available on Address, provided by the AddressPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String address)?) → TResult?

Available on Address, provided by the AddressPatterns extension

A variant of when that fallback to returning null

Operators

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