Address class sealed
- Available extensions
- Annotations
-
- @Freezed(fromJson: false, toJson: false)
Constructors
- Address.new({required String address})
-
constfactory
- 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
- 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
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_FromString value)?) → TResult? -
Available on Address, provided by the AddressPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_FromString value)?, {required TResult orElse()}) → TResult -
Available on Address, provided by the AddressPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String address)?, {required TResult orElse()}) → TResult -
Available on Address, provided by the AddressPatterns extension
A variant ofwhen
that fallback to anorElse
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
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String address)?) → TResult? -
Available on Address, provided by the AddressPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override