findAsync method

Future<List<ParseObject>> findAsync ()

Retrieves a list of ParseObjects that satisfy this query from the source in a background thread.

Implementation

Future<List<ParseObject>> findAsync() async {
  final result = await FlutterParse._channel
      .invokeMethod('queryInBackground', toString());
  if (result is String) {
    dynamic list = json.decode(result);
    if (list is List) {
      return list.map((o) {
        return ParseObject._createFromJson(o);
      }).toList();
    }
  }

  return null;
}