showFun method

Widget showFun(
  1. bool isShow(), {
  2. double? width,
  3. double? height,
})

是否显示该控件

Implementation

Widget showFun(bool Function() isShow, {double? width, double? height}) {
  return isShow() ? this : SizedBox(width: width, height: height);
}