create method

  1. @override
Future<ParseResponse> create({
  1. bool allowCustomObjectId = false,
})
override

Creates a new object and saves it online

Prefer using save over create

Implementation

@override
Future<ParseResponse> create({bool allowCustomObjectId = false}) 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;
}