PlutoColumnTypeCurrency constructor

PlutoColumnTypeCurrency({
  1. dynamic defaultValue,
  2. required bool negative,
  3. required String? format,
  4. required bool applyFormatOnInit,
  5. required bool allowFirstDot,
  6. required String? locale,
  7. String? name,
  8. String? symbol,
  9. int? decimalDigits,
})

Implementation

PlutoColumnTypeCurrency({
  this.defaultValue,
  required this.negative,
  required this.format,
  required this.applyFormatOnInit,
  required this.allowFirstDot,
  required this.locale,
  this.name,
  this.symbol,
  int? decimalDigits,
}) : numberFormat = intl.NumberFormat.currency(
        locale: locale,
        name: name,
        symbol: symbol,
        decimalDigits: decimalDigits,
        customPattern: format,
      ) {
  decimalPoint = numberFormat.decimalDigits ?? 0;
}