copyWith method

Wallet copyWith({
  1. String? name,
  2. int? order,
  3. HiveList<PublicAccount>? accounts,
})

Implementation

Wallet copyWith({
  String? name,
  int? order,
  HiveList<PublicAccount>? accounts,
}) {
  return Wallet(
    walletId: walletId,
    name: name ?? this.name,
    order: order ?? this.order,
    accounts: accounts ?? this.accounts,
    accountType: accountType,
  );
}