save method

  1. @override
Future<ParseResponse> save()
override

Saves the current installation

Implementation

@override
Future<ParseResponse> save() async {
  final bool isCurrent = await ParseInstallation.isCurrent(this);
  if (isCurrent) {
    await _updateInstallation();
  }
  //ParseResponse parseResponse = await super.save();
  final ParseResponse parseResponse = await _save();
  if (parseResponse.success && isCurrent) {
    clearUnsavedChanges();
    await saveInStorage(keyParseStoreInstallation);
  }
  return parseResponse;
}