INNER CODE UNIT · Dart
AlwaysDisabledFocusNode
dreautall/waterfly-iii · lib/extensions.dart:7
class AlwaysDisabledFocusNode extends FocusNode {
@override
bool get hasFocus => false;
}
extension CurrencyFormat on CurrencyRead {
String fmt(
num amount, {
String? locale,
bool forceCode = false,
int? decimalDigits,
}) => NumberFormat.currency(
locale: locale ?? Intl.defaultLocale,
name: attributes.code,
decimalDigits: decimalDigits ?? attributes.decimalPlaces,
symbol: forceCode ? null : attributes.symbol,
).format(amount);