copyWith method

Bank copyWith({
  1. int? id,
  2. String? name,
  3. String? code,
  4. String? bin,
  5. String? shortName,
  6. int? transferSupported,
  7. int? lookupSupported,
})

Implementation

Bank copyWith({
  int? id,
  String? name,
  String? code,
  String? bin,
  String? shortName,
  String? logo,
  int? transferSupported,
  int? lookupSupported,
}) {
  return Bank(
    id: id ?? this.id,
    name: name ?? this.name,
    code: code ?? this.code,
    bin: bin ?? this.bin,
    shortName: shortName ?? this.shortName,
    logo: logo ?? this.logo,
    transferSupported: transferSupported ?? this.transferSupported,
    lookupSupported: lookupSupported ?? this.lookupSupported,
  );
}