listFeatureGroups method

  1. @override
Future<ListFeatureGroupsResponse> listFeatureGroups(
  1. ListFeatureGroupsRequest request
)
override

Lists FeatureGroups in a given project and location.

Throws a http.ClientException if there were problems communicating with the API service. Throws a ServiceException if the API method failed for any reason.

Implementation

@override
Future<ListFeatureGroupsResponse> listFeatureGroups(
  ListFeatureGroupsRequest request,
) async {
  if (isClosed) throw StateError('Service is closed');

  if (_listFeatureGroups case final listFeatureGroups?) {
    return listFeatureGroups(request);
  }
  throw UnsupportedError('listFeatureGroups');
}