Metric constructor Null safety
Implementation
Metric(this.name, this.description) {
if ((name == 'vm') || name.contains('/')) {
throw ArgumentError('Invalid Metric name.');
}
}
Metric(this.name, this.description) {
if ((name == 'vm') || name.contains('/')) {
throw ArgumentError('Invalid Metric name.');
}
}