State(状態)を持たないWidget。変数を定義しても、自分でその値を更新することはできない。
State(状態)を持つWidget。状態を持つため、自分の変数を更新することで自分自身を再ビルドすることができる。
StatefulWidgetの状態と画面を定義するクラス。画面の本体? setStateで自身を更新することができる
変数名の前に「_」をつけるとプライベート
package:providerというものが推奨されている?(2020年の記事より)
State(状態)を持たないWidget。変数を定義しても、自分でその値を更新することはできない。
State(状態)を持つWidget。状態を持つため、自分の変数を更新することで自分自身を再ビルドすることができる。
StatefulWidgetの状態と画面を定義するクラス。画面の本体? setStateで自身を更新することができる
変数名の前に「_」をつけるとプライベート
package:providerというものが推奨されている?(2020年の記事より)