Scoped constructor
const
Scoped({
- Key? key,
- required Widget builder(
- BuildContext context,
- 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,
});