getObject method Null safety

Future<ParseResponse> getObject(
  1. String objectId
)

Gets an object from the server using it's String objectId

Implementation

Future<ParseResponse> getObject(String objectId) async {
  try {
    final String uri = '$_path/$objectId';
    final Uri url = getSanitisedUri(_client, uri);

    final ParseNetworkResponse result = await _client.get(url.toString());
    return handleResponse<ParseObject>(
        this, result, ParseApiRQ.get, _debug, parseClassName);
  } on Exception catch (e) {
    return handleException(e, ParseApiRQ.get, _debug, parseClassName);
  }
}