reInherited method
Widget
reInherited({
- Key? key,
- required BuildContext context,
- required Widget builder(
- 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,
);
}