LoginSignup
0
0

Flutterでわからなかったことを自分の言葉で起こしておきます。

StatefulWidgetが状態の変化を管理するためには、Stateクラスのインスタンスが必要。createStateメソッドは、StatefulWidgetが作成される際に呼ばれ、そのウィジェットの状態を管理するStateクラスのインスタンスを返す

State<MyHomePage>は、MyHomePageウィジェットの状態を管理するStateクラスの型を指定しています。=> _MyHomePageState();は、このメソッドが_MyHomePageStateクラスの新しいインスタンスを返す。

このコード行はMyHomePageウィジェットの状態を管理するためのクラス(_MyHomePageState)を生成し、Flutterフレームワークにそのウィジェットの状態管理をどのように行うかを教えるものです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0