MuskeyFormatter constructor

MuskeyFormatter({
  1. required List<String> masks,
  2. Map<String, Pattern>? wildcards,
  3. List<Pattern>? decorators,
  4. Map<String, String Function(String)>? charTransforms,
  5. OverflowBehavior? overflow,
  6. bool allowAutofill = false,
})

Implementation

MuskeyFormatter({
  required List<String> masks,
  Map<String, Pattern>? wildcards,
  List<Pattern>? decorators,
  Map<String, String Function(String)>? charTransforms,
  OverflowBehavior? overflow,
  bool allowAutofill = false,
}) {
  _wildcards = wildcards ?? Defaults._wildcardDefaultSet;
  _decorators = decorators ?? Defaults._decoratorDefaultSet;
  _transforms = charTransforms ?? {};
  _overflow = overflow ?? OverflowBehavior.onlyDigits();
  _allowAutofill = allowAutofill;
  _masks = _registerMasks(masks);
}