updateUser method

Future<Response> updateUser(
  1. String id,
  2. String name,
  3. String email,
  4. String password,
  5. String jwt,
)

updates a user in the users services and returns Future<http.Response>

Implementation

Future<http.Response> updateUser(
    String id, String name, String email, String password, String jwt) {
  var url = wsURL + 'update';
  return http.post(Uri.parse(url),
      headers: {HttpHeaders.authorizationHeader: 'Bearer ' + jwt},
      body: {'id': id, 'name': name, 'email': email, 'password': password});
}