create method

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

Creates a new object and saves it online

Prefer using save over create

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;
}