PriceFormatter constructor

PriceFormatter({
  1. String? locale,
})

Creates a price formatter.

If locale is not provided, uses the system locale.

Implementation

PriceFormatter({String? locale})
    : locale = locale ?? Platform.localeName.replaceAll('_', '-');