toggleFrame method

void toggleFrame()

Hide or show the current device frame.

Implementation

void toggleFrame() {
  data = data.copyWith(
    isFrameVisible: !data.isFrameVisible,
  );
}