Skip to content

Latest commit

 

History

History
78 lines (61 loc) · 2.98 KB

study.md

File metadata and controls

78 lines (61 loc) · 2.98 KB

List.generate( 3, // listの要素数 (index) => {} // 各要素に対する処理 )

  • spread oprator ... あるlistsの全ての値を他のlistsに突っ込む時に使う

var lists2 = [0, ...lists]

  • UiqueKey Creates a key that is equal only to itself. The key cannot be created with a const constructor because that implies that all instantiated keys would be the same instance and therefore not be unique.

  • 親Widgetから子Widgetへのpropの受け渡し

class Parent( Child(a: "", b: 1) )

class Child( Child({ required String a, required Int b }) )