FFNumberFormat constructor

FFNumberFormat({
  1. FFNumberFormat_FormatType? formatType,
  2. FFNumberFormat_DecimalType? decimalType,
  3. bool? isCurrency,
  4. String? currencySymbol,
  5. bool? lowerScientific,
  6. String? customFormat,
  7. String? customLocale,
})

Implementation

factory FFNumberFormat({
  FFNumberFormat_FormatType? formatType,
  FFNumberFormat_DecimalType? decimalType,
  $core.bool? isCurrency,
  $core.String? currencySymbol,
  $core.bool? lowerScientific,
  $core.String? customFormat,
  $core.String? customLocale,
}) {
  final result = create();
  if (formatType != null) result.formatType = formatType;
  if (decimalType != null) result.decimalType = decimalType;
  if (isCurrency != null) result.isCurrency = isCurrency;
  if (currencySymbol != null) result.currencySymbol = currencySymbol;
  if (lowerScientific != null) result.lowerScientific = lowerScientific;
  if (customFormat != null) result.customFormat = customFormat;
  if (customLocale != null) result.customLocale = customLocale;
  return result;
}