clockEdge method

void clockEdge()

Applies one rising clock edge using the sampled inputs.

Implementation

void clockEdge() {
  _stateVersion++;
  final resetValue = reset.knownBool;
  if (resetValue == null) {
    invalidate();
    return;
  }
  if (resetValue) {
    resetState();
    _known = true;
    _arbitrationDirty = true;
    return;
  }
  if (!_known) {
    return;
  }
  _arbitrationDirty = true;
  evaluate();
  if (!_commit()) {
    invalidate();
  }
  _arbitrationDirty = true;
}