Scoped constructor

const Scoped({
  1. Key? key,
  2. required Widget builder(
    1. BuildContext context,
    2. WidgetRef ref
    ),
})

Widgets for state management within a page or widget.

Be sure to place it under PageScopedWidget.

By passing builder, you can place the widget you wish to reflect the update in it.

ページの中やウィジェットの中で状態管理を行うためのウィジェット。

必ずPageScopedWidgetの配下にくるように配置してください。

builderを渡すことでその中に更新を反映したいウィジェットを配置することができます。

Implementation

const Scoped({
  super.key,
  required this.builder,
});