EventualBuilder constructor

EventualBuilder(
  1. {EventualNotifier notifier,
  2. List<EventualNotifier> notifiers,
  3. @required Widget builder(
    1. BuildContext,
    2. List<EventualNotifier>,
    3. Widget
    ),
  4. Widget child,
  5. Key key}
)

Implementation

EventualBuilder(
    {EventualNotifier notifier,
    List<EventualNotifier> notifiers,
    @required this.builder,
    this.child,
    Key key})
    : assert(notifiers is List || notifier is EventualNotifier),
      super(key: key) {
  if (notifiers is List)
    this.notifiers.addAll(notifiers);
  else
    this.notifiers.add(notifier);
}