visible method

Widget visible([
  1. bool visible = true
])

Wraps the widget in a Visibility widget.

Implementation

Widget visible([bool visible = true]) =>
    Visibility(visible: visible, child: this);