cloneWithChild method

  1. @override
StreamProvider<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
StreamProvider<T> cloneWithChild(Widget child) {
  return StreamProvider._(
    key: key,
    delegate: delegate,
    updateShouldNotify: updateShouldNotify,
    initialData: initialData,
    catchError: catchError,
    child: child,
  );
}