FieldFormatter constructor
FieldFormatter(
- Charset? charset,
- TimeZones? timeZone,
- 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;
}