WidgetSelector constructor
const
WidgetSelector({})
Creates a new WidgetSelector instance
stream
: Stream<bool>
that signals that the this Widget should be updated
onTrue
: Widget that should be returned if an item with value true is received
onFalse
: Widget that should be returned if an item with value false is received
Implementation
const WidgetSelector({
Key? key,
required Stream<bool> buildEvents,
this.onTrue,
this.onFalse,
this.errorBuilder,
this.placeHolderBuilder,
bool? initialValue,
}) : super(buildEvents, initialValue, key: key);