SubValue<T>.builder constructor

const SubValue<T>.builder({
  1. required SubValueBuilderCreate<T> create,
  2. SubValueBuilderKeys? keys,
  3. SubValueBuilderUpdate<T>? update,
  4. SubValueBuilderDispose<T>? dispose,
  5. 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:

Implementation

const SubValue.builder({
  required this.create,
  this.keys,
  this.update,
  this.dispose,
  required this.builder,
}) : super(key: null);