hide method

Visibility hide(
  1. bool isVisible, {
  2. bool maintainSize = false,
})

Hides the current widget based on a condition.

isVisible determines whether the widget should be visible. maintainSize if true, the space for the widget is maintained even when hidden.

Returns a Visibility widget with the current widget as its child.

Implementation

Visibility hide(bool isVisible, {bool maintainSize = false}) =>
    _visibility(isVisible: false, maintainSize: maintainSize);