ScopedWidget constructor

const ScopedWidget({
  1. Key? key,
})

Abstract class for creating widgets that can perform state management under the page.

Be sure to place the created widget under PageScopedWidget.

You can get the widget content with ScopedWidgetScope.of since it inherits from ScopedWidgetBase.

ページの配下で状態管理を行うことが可能なウィジェットを作成するための抽象クラス。

作成したウィジェットは必ずPageScopedWidgetの配下にくるように配置してください。

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

Implementation

const ScopedWidget({
  super.key,
});