WidgetQueryWallet class abstract
A user's TON wallet as reported in a widget query.
- Available extensions
- Annotations
-
- @freezed
Constructors
- WidgetQueryWallet({@JsonKey.new(name: 'address') required String address, @JsonKey.new(name: 'amount') required String amount, @JsonKey.new(name: 'public_key') String? publicKey, @JsonKey.new(name: 'state_init') String? stateInit})
-
Creates a WidgetQueryWallet.
constfactory
-
WidgetQueryWallet.fromJson(Map<
String, dynamic> json) -
Creates a WidgetQueryWallet from JSON.
factory
Properties
- address → String
-
Wallet address.
no setterinherited
- amount → String
-
Wallet balance in the smallest currency units, as a decimal string.
no setterinherited
-
copyWith
→ $WidgetQueryWalletCopyWith<
WidgetQueryWallet> -
Create a copy of WidgetQueryWallet
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- publicKey → String?
-
Hex-encoded public key, if known.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stateInit → String?
-
Base64-encoded StateInit of the wallet contract, if the key is known.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_WidgetQueryWallet value)) → TResult -
Available on WidgetQueryWallet, provided by the WidgetQueryWalletPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_WidgetQueryWallet value)?) → TResult? -
Available on WidgetQueryWallet, provided by the WidgetQueryWalletPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_WidgetQueryWallet value)?, {required TResult orElse()}) → TResult -
Available on WidgetQueryWallet, provided by the WidgetQueryWalletPatterns extension
A variant ofmapthat fallback to returningorElse. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this WidgetQueryWallet to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited