isEnabled property

bool get isEnabled

Indicates whether the current value is LocalTrackState.enabled or LocalTrackState.enabling.

Implementation

bool get isEnabled {
  switch (this) {
    case LocalTrackState.enabled:
    case LocalTrackState.enabling:
      return true;
    case LocalTrackState.disabled:
    case LocalTrackState.disabling:
      return false;
  }
}