save method

Future<void> save()

Implementation

Future<void> save() async {
  notifyScreen(false);
  if (isNewModel) {
    await createModel();
  } else {
    await updateModel();
  }
  notifyScreen();
}