create method
- {bool allowCustomObjectId = false,
- dynamic context}
override
Creates a new object and saves it online
Implementation
@override
Future<ParseResponse> create(
{bool allowCustomObjectId = false, dynamic context}) async {
final bool isCurrent = await ParseInstallation.isCurrent(this);
if (isCurrent) {
await _updateInstallation();
}
final ParseResponse parseResponse =
await _create(allowCustomObjectId: allowCustomObjectId);
if (parseResponse.success && isCurrent) {
clearUnsavedChanges();
await saveInStorage(keyParseStoreInstallation);
}
return parseResponse;
}