phonePattern top-level constant
String
const phonePattern
Phone Regex - A predefined type for handling phone matching
Implementation
const phonePattern =
r"(\+?( |-|\.)?\d{1,2}( |-|\.)?)?(\(?\d{3}\)?|\d{3})( |-|\.)?(\d{3}( |-|\.)?\d{4})";