cycleStyle method

void cycleStyle()

Moves the selected entity, or the pending style, to the next style.

Implementation

void cycleStyle() => _writeActive(
  (entity) => entity.style = entity.style.next,
  () => pendingStyle = pendingStyle.next,
);