withFlexible method
Implementation
Widget withFlexible({required Widget child, required BoxBaseStyles styles}) {
if (styles.flex != null) {
return Expanded(
flex: styles.flex,
child: child,
);
}
return child;
}
Widget withFlexible({required Widget child, required BoxBaseStyles styles}) {
if (styles.flex != null) {
return Expanded(
flex: styles.flex,
child: child,
);
}
return child;
}