kwithElseShow method

Widget kwithElseShow(
  1. bool isShow,
  2. Widget widget
)

判断显示哪个控件

Implementation

Widget kwithElseShow(bool isShow, Widget widget) {
  return isShow ? this : widget;
}