supportsDiscreteOnOff property
bool
get
supportsDiscreteOnOff
Implementation
bool get supportsDiscreteOnOff =>
getPowerTrait()
?.properties
.whereType<SupportsDiscreteOnOff>()
.first
.value ??
false;