expand method

  1. @protected
Widget expand(
  1. Widget child
)

Wrap if necessary.

  • child : The child widget.

Implementation

@protected
Widget expand(Widget child) {
  if (spwmlParams.p.weight != null) {
    return Expanded(flex: spwmlParams.p.weight!, child: child);
  } else {
    return child;
  }
}