copyWith method

WidgetQueryWallet copyWith({
  1. String? address,
  2. int? gramAmount,
  3. String? publicKey,
  4. String? stateInit,
})

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,
);