visibleWhen method

Widget visibleWhen(
  1. bool condition
)

Make a widget visible when a condition is true.

Implementation

Widget visibleWhen(bool condition) {
  return Visibility(
    visible: condition,
    child: this,
  );
}