getLocationsByQuery method

  1. @override
Future<List<MPLocation>?> getLocationsByQuery(
  1. MPQuery? query,
  2. MPFilter? filter
)
override

Implementation

@override
Future<List<MPLocation>?> getLocationsByQuery(
    MPQuery? query, MPFilter? filter) async {
  final locations = await mapsIndoorsMethodChannel.invokeMethod(
      "MIN_getLocationsByQuery",
      {"query": query?._jsonEncode(), "filter": filter?._jsonEncode()});
  return convertMIList<MPLocation>(
      jsonDecode(locations), (p0) => MPLocation.fromJson(p0));
}