copyWith method

SaveAccount copyWith({
  1. String? name,
  2. AccountType? type,
  3. num? balance,
})

Implementation

SaveAccount copyWith({String? name, enums.AccountType? type, num? balance}) {
  return SaveAccount(
      name: name ?? this.name,
      type: type ?? this.type,
      balance: balance ?? this.balance);
}