visibility method
控制组件隐藏显示
Implementation
Widget visibility({
Key? key,
required bool visible,
bool maintainSize = false,
bool maintainState = false,
bool maintainAnimation = false,
}) =>
Visibility(
key: key,
visible: visible,
maintainSize: maintainSize,
maintainState: maintainState,
maintainAnimation: maintainAnimation,
child: this,
);