BankInfo class
A bank (or other institution) that issues Pakistani IBANs.
Values are immutable, so each result can be kept or passed on without changing the shared data.
Constructors
- BankInfo({required String code, required String name, required BankType type, required bool active, String? mergedInto, String? aliasOf, BankStatus status = BankStatus.active, String? website, String? websiteSbpListed, String? swift, BankSwiftSource? swiftSource, String? swiftReason})
-
Creates a bank info value.
const
Properties
- active → bool
-
falsefor banks that merged into another and no longer exist.final - aliasOf → String?
-
Main code of the same bank, when this is an older code still in use.
final
- code → String
-
4-letter IBAN bank code (characters 5–8 of the IBAN).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- mergedInto → String?
-
Code of the bank this one merged into, if it no longer exists.
final
- name → String
-
Bank name.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → BankStatus
-
Active, merged (see mergedInto) or liquidated.
final
- swift → String?
-
The 8-character SWIFT/BIC code, only where SBP or the institution's own
website prints it; otherwise
null(see swiftReason).final - swiftReason → String?
-
Why swift is
null, ornullwhen it is set.final - swiftSource → BankSwiftSource?
-
Where swift is printed, and when it was checked;
nullwithout one.final - type → BankType
-
Kind of institution.
final
- website → String?
-
The institution's official website (from SBP's lists of regulated
institutions, or its own site where SBP lists none or an old domain),
or
nullfor a bank that no longer exists.final - websiteSbpListed → String?
-
What SBP's list gives, where it differs from website (an older
domain); otherwise
null.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> - JSON form, with the same keys as the npm package.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override