update method

  1. @override
Future<ParseResponse> update({
  1. dynamic context,
})
override

Send the updated object to the server.

Will only send the dirty (modified) data and not the entire object

The object should hold an objectId in order to update it

Prefer using save over update

Implementation

@override
Future<ParseResponse> update({dynamic context}) async {
  if (objectId == null) {
    return await signUp();
  } else {
    final ParseResponse response = await super.update();
    if (response.success) {
      await _onResponseSuccess();
    }
    return response;
  }
}