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