buildPreferredSize method

  1. @protected
Widget buildPreferredSize(
  1. BuildParameters params
)

Implementation

@protected
Widget buildPreferredSize(BuildParameters params) {
  return PreferredSize(
    key: properties.getKey(params.id),
    preferredSize: params.buildProp("size") ?? Size.zero,
    child: builder.tryBuildWidget(params.context, params.widgets["child"],
            params.state, params.parentContext) ??
        const SizedBox(),
  );
}