WidgetSelector constructor

const WidgetSelector({Key key, Stream<bool> buildEvents, Widget onTrue, Widget onFalse, ErrorBuilder<String> errorBuilder, PlaceHolderBuilder placeHolderBuilder, bool initialValue })

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,
  Stream<bool> buildEvents,
  this.onTrue,
  this.onFalse,
  this.errorBuilder,
  this.placeHolderBuilder,
  bool initialValue,
})  : assert(buildEvents != null),
      assert(onTrue != null),
      assert(onFalse != null),
      super(buildEvents, initialValue, key: key);