Skip to content

Commit

Permalink
Use const constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed May 27, 2024
1 parent ad7ce2d commit 5af2d60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/intl4x/example/web/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import 'package:intl4x/number_format.dart';

void main() {
num number = 300000;
var intl = Intl(ecmaPolicy: AlwaysEcma());
var intl = Intl(ecmaPolicy: const AlwaysEcma());
String nf(num number) => intl
.numberFormat(NumberFormatOptions.custom(
style: CurrencyStyle(currency: 'USD'),
digits: Digits.withFractionDigits(minimum: 0, maximum: 2),
digits: const Digits.withFractionDigits(minimum: 0, maximum: 2),
roundingMode: RoundingMode.halfCeil,
))
.format(number);
Expand Down

0 comments on commit 5af2d60

Please sign in to comment.