title: Flutter: what is the risk using global vairable?
body: <p>i'm working on flutter project and i need some variable that can be accessed to all file, im confused but currently this is how my code look like</p>
  <p>this is my global.dart</p>
  <pre><code>String phone_num;
  String token;
  bool is_forget_pass;
  </code></pre>
  <p>and i access those variable like this:</p>
  <pre><code>import 'package:MY_PROJECT/View/Widgets/globals.dart' as globals;
  
  globals.phone_num
  </code></pre>
  <p>what is the risk and cons using this method?</p>