ScopedWidgetScope constructor
const
ScopedWidgetScope({
- Key? key,
- required Widget child,
- required ScopedWidgetBase widget,
InheritedWidget for making ScopedWidgetBase retrievable from descendant widgets.
Pass a class inheriting from PageScopedWidget or ScopedWidget to widget.
ScopedWidgetScope.of allows you to retrieve the widget in the ancestor.
ScopedWidgetBaseを子孫ウィジェットから取り出し可能にするためのInheritedWidget。
widgetにPageScopedWidgetやScopedWidgetを継承したクラスを渡します。
ScopedWidgetScope.ofで先祖にあるウィジェットを取り出すことができます。
Implementation
const ScopedWidgetScope({
super.key,
required this.child,
required this.widget,
});