submit method
dynamic
submit()
Implementation
submit(Function() updateUser, Function() route, Function post,
Map<String, dynamic> body, String url) async {
_pressed = true;
notifyListeners();
var response = await post(
url: url,
body: body,
);
if (response != null && response.statusCode == 200) {
await updateUser();
route();
} else {
_pressed = false;
notifyListeners();
}
}