xFlexableRes method

Widget xFlexableRes(
  1. bool condition,
  2. {FlexFit fit = FlexFit.loose,
  3. int flex = 1,
  4. Key key}
)

Implementation

Widget xFlexableRes(bool condition,
    {FlexFit fit = FlexFit.loose, int flex = 1, Key key}) {
  if (condition) {
    return xFlexable(fit: fit, flex: flex, key: key);
  } else {
    return this;
  }
}