PageScopedWidget constructor

const PageScopedWidget({
  1. 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.

ページで利用するウィジェットを作成するための抽象クラス。

buildPageRefが渡されるためそれを購読することで更新通知に応じて内部のウィジェットを更新することができます。

ScopedWidgetBaseを継承しているためScopedWidgetScope.ofでウィジェットの内容を取得できます。

Implementation

const PageScopedWidget({super.key});