Bind<T>.builder constructor
Bind<T>.builder ({
- Widget? child,
- InitBuilder<
T> ? init, - InstanceCreateBuilderCallback<
T> ? create, - bool global = true,
- bool autoRemove = true,
- bool assignId = false,
- Object filter(
- T value
- String? tag,
- Object? id,
- void initState(
- BindElement<
T> state
- BindElement<
- void dispose(
- BindElement<
T> state
- BindElement<
- void didChangeDependencies(
- BindElement<
T> state
- BindElement<
- void didUpdateWidget(
- Binder<
T> oldWidget, - BindElement<
T> state
- Binder<
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,
);