isTransition property

bool get isTransition

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

Implementation

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