updateStatus method

Future<void> updateStatus()

Implementation

Future<void> updateStatus() async {
  final url = Uri.parse('http://172.16.1.51:3000/update');
  var token = await _firebaseMessaging.getToken();
  final response = await http.put(
    url,
    headers: <String, String>{
      "Content-Type": "application/json",
      "Keep-Alive": "timeout=5",
      "Authorization": "$token"
    },
  );
  print(response);
  print(response.body);
}