visible method

Widget visible({
  1. bool condition = true,
})

Hides the widget entirely when condition is false.

Implementation

Widget visible({bool condition = true}) =>
    condition ? this : const SizedBox.shrink();