visibility method

Widget visibility({
  1. Key? key,
  2. required bool visible,
  3. bool maintainSize = false,
  4. bool maintainState = false,
  5. bool maintainAnimation = false,
})

控制组件隐藏显示

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,
    );