all static method

Future<ParseResponse> all({
  1. bool? debug,
  2. ParseClient? client,
})

Gets a list of all users (limited return)

Implementation

static Future<ParseResponse> all({bool? debug, ParseClient? client}) async {
  final ParseUser emptyUser = _getEmptyUser();

  final bool debugLocal = isDebugEnabled(objectLevelDebug: debug);
  final ParseClient clientLocal = client ??
      ParseCoreData().clientCreator(
        sendSessionId: true,
        securityContext: ParseCoreData().securityContext,
      );

  try {
    final Uri url = getSanitisedUri(clientLocal, path);
    final ParseNetworkResponse response = await clientLocal.get(
      url.toString(),
    );
    final ParseResponse parseResponse = handleResponse<ParseUser>(
      emptyUser,
      response,
      ParseApiRQ.getAll,
      debugLocal,
      keyClassUser,
    );
    return parseResponse;
  } on Exception catch (e) {
    return handleException(e, ParseApiRQ.getAll, debugLocal, keyClassUser);
  }
}