copyWith method

Account copyWith({
  1. String? id,
  2. String? name,
  3. String? type,
})

Implementation

Account copyWith({String? id, String? name, String? type}) => Account(
  id: id ?? this.id,
  name: name ?? this.name,
  type: type ?? this.type,
);