title: Instance members can't be accessed from a static method dart
body: <p>I have a static method, </p>
  
  <p>and I tried to pass a variable into that method, but it said to me </p>
  
  <p><strong>Instance members can't be accessed from a static method Flutter</strong></p>
  
  <p>can you help me? </p>
  
  <p>this is my method:</p>
  
  <pre><code> static void backgroundCallback(List&lt;LocationData&gt; locations) async {
          print(x);
      FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin =
      new FlutterLocalNotificationsPlugin();
      var initializationSettingsAndroid = ...........
  </code></pre>
  
  <p>can anyone help me ??</p>