bit property
- @Deprecated('Check `width` separately to see if single-bit.')
The current active value of this, if it has width 1, as a LogicValue.
Throws an Exception if width is not 1.
Implementation
@Deprecated('Check `width` separately to see if single-bit.')
// ignore: avoid_returning_this
LogicValue get bit {
if (width != 1) {
throw Exception('Width must be 1, but was $width.');
}
// ignore: avoid_returning_this
return this;
}