Metric(String name, String description)

Source

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