togglePreview method

void togglePreview()

Toggles the preview visibility.

Implementation

void togglePreview() {
  state = state.copyWith(showPreview: !state.showPreview);
}