kshowFun method

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

是否显示该控件

Implementation

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