FieldFormatter constructor

FieldFormatter(
  1. Charset? charset,
  2. TimeZones? timeZone,
  3. bool swallowFieldSizeErrors
)

Implementation

FieldFormatter(
    this.charset, TimeZones? timeZone, bool swallowFieldSizeErrors) {
  // Avoid grouping on number format
  numFormat.turnOffGrouping(); // setGroupingUsed(false);
  // build a 255 white spaces string
  emptyString = createEmptyString();

  if (timeZone != null) {
    timeZone.setZone('en_US');
  }
  // this.calendar = Calendar.getInstance(timeZone, Locale.US);

  this.swallowFieldSizeErrors = swallowFieldSizeErrors;
}