PageScopedWidget constructor
const
PageScopedWidget({
- Key? key,
Abstract class for creating widgets for use on pages.
Since PageRef is passed to build, you can subscribe to it to update the internal widget according to update notifications.
ScopedWidgetScope.of] to get the widget's content, since it inherits from ScopedWidgetBase.
ページで利用するウィジェットを作成するための抽象クラス。
buildにPageRefが渡されるためそれを購読することで更新通知に応じて内部のウィジェットを更新することができます。
ScopedWidgetBaseを継承しているためScopedWidgetScope.ofでウィジェットの内容を取得できます。
Implementation
const PageScopedWidget({super.key});