ThousandsPosSeparator.parse constructor
ThousandsPosSeparator.parse(
- String char
Parse char
to thousands pos separator
Implementation
factory ThousandsPosSeparator.parse(String char) {
switch (char) {
case ',':
return comma;
case '.':
return dot;
case ' ':
return space;
case '\'':
return quote;
}
throw FormatException(
"Invalid char. Valid characters: $values",
char,
);
}