Binder<T> constructor
const
Binder<T> ({
- Key? key,
- required Widget child,
- InitBuilder<
T> ? init, - bool global = true,
- bool autoRemove = true,
- bool assignId = false,
- bool lazy = true,
- void initState(
- BindElement<
T> state
- BindElement<
- Object filter(
- T value
- String? tag,
- void dispose(
- BindElement<
T> state
- BindElement<
- Object? id,
- void didChangeDependencies(
- BindElement<
T> state
- BindElement<
- void didUpdateWidget(
- Binder<
T> oldWidget, - BindElement<
T> state
- Binder<
- InstanceCreateBuilderCallback? create,
Create an inherited widget that updates its dependents when controller
sends notifications.
The child
argument is required
Implementation
const Binder({
super.key,
required super.child,
this.init,
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,
this.create,
});