Selector0<T> constructor

Selector0<T>({
  1. Key? key,
  2. required ValueWidgetBuilder<T> builder,
  3. required T selector(
    1. BuildContext
    ),
  4. ShouldRebuild<T>? shouldRebuild,
  5. Widget? child,
})

Both builder and selector must not be null.

Implementation

Selector0({
  Key? key,
  required this.builder,
  required this.selector,
  ShouldRebuild<T>? shouldRebuild,
  Widget? child,
})  : _shouldRebuild = shouldRebuild,
      super(key: key, child: child);