APIInstrument constructor
APIInstrument({})
Creates a new instrument with the specified parameters.
name The name of the instrument (required).
unit The optional unit of measurement.
description An optional human-readable description.
meter The meter that created this instrument.
Implementation
APIInstrument({
required String name,
String? unit,
String? description,
required APIMeter meter,
}) : _name = name,
_unit = unit,
_description = description,
_meter = meter;