MuskeyFormatter.countryPhoneMasks constructor

MuskeyFormatter.countryPhoneMasks({
  1. bool allowOverflowingInputs = true,
})

Convenience factory for nice formatting of about 300 phone masks.

Implementation

factory MuskeyFormatter.countryPhoneMasks({
  bool allowOverflowingInputs = true,
}) {
  return MuskeyFormatter(
    masks: Defaults.countryPhoneMasks,
    overflow: OverflowBehavior(
      allowed: allowOverflowingInputs,
      overflowOn: RegExp('[0-9]'),
    ),
    allowAutofill: false,
  );
}