visible method

Widget visible(
  1. Visible visible
)

Implementation

Widget visible(Visible visible) => visible == Visible.VISIBLE ? this : (visible == Visible.INVISIBLE ? Opacity(opacity: 0, child: this) : Offstage(offstage: true, child: this));