reInherited method

  1. @override
Widget reInherited({
  1. Key? key,
  2. required BuildContext context,
  3. required Widget builder(
    1. BuildContext context
    ),
})
override

Provide the Injected model to another widget tree branch.

Implementation

@override
Widget reInherited({
  Key? key,
  required BuildContext context,
  required Widget Function(BuildContext context) builder,
}) {
  final inj =
      context.dependOnInheritedWidgetOfExactType<_InheritedInjected<T>>()!;
  return _inherited(
    key: key,
    reInheritedInject: inj.injected,
    globalInjected: inj.globalInjected,
    builder: builder,
  );
}