Bind<T>.builder constructor

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

Factory method to create a Bind widget using a builder pattern.

Implementation

factory Bind.builder({
  Widget? child,
  InitBuilder<T>? init,
  InstanceCreateBuilderCallback<T>? create,
  bool global = true,
  bool autoRemove = true,
  bool assignId = false,
  Object Function(T value)? filter,
  String? tag,
  Object? id,
  void Function(BindElement<T> state)? initState,
  void Function(BindElement<T> state)? dispose,
  void Function(BindElement<T> state)? didChangeDependencies,
  void Function(Binder<T> oldWidget, BindElement<T> state)? didUpdateWidget,
}) =>
    _FactoryBind<T>(
      init: init,
      create: create,
      global: global,
      autoRemove: autoRemove,
      assignId: assignId,
      initState: initState,
      filter: filter,
      tag: tag,
      dispose: dispose,
      id: id,
      didChangeDependencies: didChangeDependencies,
      didUpdateWidget: didUpdateWidget,
      child: child,
    );