buildPreferredSize method
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(),
);
}