save method
Implementation
Future<void> save() async {
setBusy(true);
bool success = await _authenticationService.updateUserDetails(
name: _name, dob: _dob, orgCode: _orgCode);
if (success) {
print("Success");
setBusy(false);
notifyListeners();
} else {
_dialogService.showDialog(BasicDialog(
title: "Error",
description:
"Sorry there has been an error whilst updating your details.",
));
setBusy(false);
notifyListeners();
}
}