Binder<T> constructor

const Binder<T>({
  1. required Widget child,
  2. Key? key,
  3. InitBuilder<T>? init,
  4. InstanceCreateBuilderCallback? create,
  5. bool global = true,
  6. bool autoRemove = true,
  7. bool assignId = false,
  8. bool lazy = true,
  9. void initState(
    1. BindElement<T> state
    )?,
  10. Object filter(
    1. T value
    )?,
  11. String? tag,
  12. dynamic dispose(
    1. BindElement<T> state
    )?,
  13. Object? id,
  14. dynamic didChangeDependencies(
    1. BindElement<T> state
    )?,
  15. void didUpdateWidget(
    1. Binder<T> oldWidget,
    2. BindElement<T> state
    )?,
})

Creates an inherited widget that updates its dependents when controller sends notifications.

The child argument is required.

Implementation

const Binder({
  required super.child,
  super.key,
  this.init,
  this.create,
  this.global = true,
  this.autoRemove = true,
  this.assignId = false,
  this.lazy = true,
  this.initState,
  this.filter,
  this.tag,
  this.dispose,
  this.id,
  this.didChangeDependencies,
  this.didUpdateWidget,
});