cloneWithChild method

  1. @override
Selector0<T> cloneWithChild (Widget child)
override

Clones the current provider with a new child.

Note for implementers: all other values, including Key must be preserved.

Implementation

@override
Selector0<T> cloneWithChild(Widget child) {
  return Selector0(
    key: key,
    selector: selector,
    builder: builder,
    child: child,
  );
}