SubValue<T>.builder constructor
const
SubValue<T>.builder ({
- required SubValueBuilderCreate<
T> create, - SubValueBuilderKeys? keys,
- SubValueBuilderUpdate<
T> ? update, - SubValueBuilderDispose<
T> ? dispose, - required SubValueBuild<
T> builder,
Creates, recreates, updates and disposes a Value T.
The same as SubValue, but also passes BuildContext for its operations. This is useful when creating SubValues which depend on InheritedWidget.
See also:
- SubValue, which omits BuildContext.
Implementation
const SubValue.builder({
required this.create,
this.keys,
this.update,
this.dispose,
required this.builder,
}) : super(key: null);