copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
WidgetQueryWallet copyWith({
String? address,
int? gramAmount,
String? publicKey,
String? stateInit,
}) => WidgetQueryWallet(
address: address ?? this.address,
gramAmount: gramAmount ?? this.gramAmount,
publicKey: publicKey ?? this.publicKey,
stateInit: stateInit ?? this.stateInit,
);