I've been trying to zoom to features after definition expression is applied. is there a way to direct zoom to all features which satisfies the definition expression? I already checked all examples, Could you please suggest something to do that?
queryParameters.whereClause = featureLayer.definitionExpression;
//var feaureTable = FeatureLayer.withFeatureTable(featureTable);
final queryResult = await featureTable.queryExtent(queryParameters);
// Query the extent of features that match the definition expression
// final QueryResult result =
// await _featureLayer.queryExtent(queryParams: queryParams);
// Get the map controller
// final controller = await _mapControllerCompleter.future;
// Zoom to the filtered extent
await _mapViewController.setViewpointGeometry(queryResult.extent);