getRunLocations method Null safety

Future<List<RunLocation>> getRunLocations(
  1. String runId
)

Gets all locations for the runId provided

Implementation

Future<List<RunLocation>> getRunLocations(String runId) async {
  final result = await syncController.get(query: Query.where('runId', runId));
  return result ?? [];
}