title: How to format mobile number based on country code in flutter
body: <p>Can anyone tell me how to format mobile number based on country code. Hope you understand.</p>
  
  <p><a href="https://i.stack.imgur.com/E5mrj.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E5mrj.gif" alt="enter image description here"></a></p>
  
  <p>here's what I did try so far:</p>
  
  <pre><code>var controller = new MaskedTextController(mask: '(000) 000 0000');
  
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar( title: Text("Masked Text"), ),
      body: Container(
         child: Row(
            children: &lt;Widget&gt;[
               Expanded(
                 child: TextField(
                    controller: controller,
                    keyboardType: TextInputType.number, maxLength: 18,
                 ),
               ),
            ],
         )),
     ); 
   }
  </code></pre>