MDeviceValue constructor
MDeviceValue(
- MDeviceMetric metric, {
- String? defaultValue,
defaultValue is forwarded, not inherited: Dart constructors do not pass
named parameters up on their own, so without this a metric could never
declare what to show before the first native read lands — which on iOS is
every gallery preview, since the extension has not run yet.
Implementation
MDeviceValue(this.metric, {super.defaultValue}) : super(metric.key);