gone method

Widget gone(
  1. bool gone, [
  2. double? breakpoint
])

Hides the widget and removes it from the layout if gone is true.

Similar to display: none in CSS.

Implementation

Widget gone(bool gone, [double? breakpoint]) => _apply(
      breakpoint,
      (w) => Visibility(
        visible: !gone,
        maintainState: false,
        child: w,
      ),
    );