Create the mask formatter for TextField
The keys of the filter assign which character in the mask should be replaced and the values validate the entered character By default # match to the number.
filter
final String? mask;