setBuilder method
Returns a widget from builder assuming the current object is a Listenable const SizedBox.shrink() otherwise
Implementation
Widget setBuilder(MaybeBuildWidgetType? builder) {
// Ensure the ChangeNotifier is initialized
initChangeNotifier();
if (builder != null) {
_widgetBuilderUsed = true;
}
return ListenableWidgetBuilder(
listenable: _implChangeNotifier,
builder: builder,
);
}