GuardrailStatusRow constructor
GuardrailStatusRow({
- required String featureLabel,
- required String metricLabel,
- required GuardrailRowState state,
- String? boundsText,
- String? currentText,
Implementation
GuardrailStatusRow({
required this.featureLabel,
required this.metricLabel,
required this.state,
this.boundsText,
this.currentText,
}) {
for (final (name, value) in [
('featureLabel', featureLabel),
('metricLabel', metricLabel),
('boundsText', boundsText),
('currentText', currentText),
]) {
if (value != null && value.trim().isEmpty) {
throw ArgumentError.value(value, name, 'must not be blank');
}
}
}