show method

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

Shows 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 show(bool isVisible, {bool maintainSize = false}) =>
    _visibility(isVisible: true, maintainSize: maintainSize);