phone_number_controller library

Classes

AddedChars
Diff
NoDiff
PhoneNumberController
A TextEditingController that formats phone numbers as they are typed.
RemovedChars

Functions

computeInsertedChars(String raw, String formatted) Set<int>?
computeRemovedCharsFromRaw(RemovedChars change, Set<int> insertedChars) → (int, int)
inferDiff(String previous, String current) Diff?
inferDiffWithCursorHint(String previous, String current, int cursor) Diff?
longestCommonPrefix(String a, String b) String
longestCommonSuffix(String a, String b) String