handleExpanded method

  1. @protected
Widget handleExpanded(
  1. BuildContext context,
  2. Widget widget,
  3. WidgetNodeSpec spec
)

Handles convenience 'wrapExpanded' property.

Implementation

@protected
Widget handleExpanded(
    BuildContext context, Widget widget, WidgetNodeSpec spec) {
  if (parseBool(spec.props["wrapExpanded"])) {
    widget = Expanded(child: widget);
  }
  return widget;
}