getFeatureMonitor method

  1. @override
Future<FeatureMonitor> getFeatureMonitor(
  1. GetFeatureMonitorRequest request
)
override

Gets details of a single FeatureMonitor.

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<FeatureMonitor> getFeatureMonitor(
  GetFeatureMonitorRequest request,
) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getFeatureMonitor case final getFeatureMonitor?) {
    return getFeatureMonitor(request);
  }
  throw UnsupportedError('getFeatureMonitor');
}