Reprovide<T> function

Widget Reprovide<T>(
  1. BuildContext context, {
  2. bool listen = true,
  3. required Widget child,
})

Implementation

Widget Reprovide<T>(BuildContext context,
    {bool listen = true, required Widget child}) {
  return Provider<T>.value(
      value: Provider.of<T>(context, listen: listen), child: child);
}