BankUiScopeData class

Immutable snapshot of the runtime configuration for the Bank UI Kit.

An instance lives inside BankUiScope and is propagated through the widget tree via _BankUiScopeInherited. Widgets read it with BankUiScope.of.

Annotations

Constructors

BankUiScopeData({bool privacyEnabled = false, BankPreset preset = BankPreset.studio, BankUiStrings strings = BankUiStrings.defaults, NumeralStyle numeralStyle = NumeralStyle.western, bool islamicFinanceMode = false, ImageProvider<Object> imageResolver(String url)?, Widget flagBuilder(BuildContext context, String isoCode, Size size)?})
const

Properties

flagBuilder → Widget Function(BuildContext context, String isoCode, Size size)?
Builds the country-flag visual for an ISO 3166-1 alpha-2 code.
final
hashCode → int
The hash code for this object.
no setteroverride
imageResolver → ImageProvider<Object> Function(String url)?
Maps an image URL to the ImageProvider used to load it.
final
islamicFinanceMode → bool
When true, labels such as APR are replaced with Islamic-finance equivalents (e.g. "Profit Rate") sourced from strings.
final
numeralStyle → NumeralStyle
final
preset → BankPreset
final
privacyEnabled → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strings → BankUiStrings
final

Methods

copyWith({bool? privacyEnabled, BankPreset? preset, BankUiStrings? strings, NumeralStyle? numeralStyle, bool? islamicFinanceMode, ImageProvider<Object> imageResolver(String url)?, Widget flagBuilder(BuildContext context, String isoCode, Size size)?}) → BankUiScopeData
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override