Merge pull request #1918 from abarth/improve_createState_docs
Improve the sample code for createState
This commit is contained in:
commit
feceb7583e
@ -274,7 +274,7 @@ abstract class StatefulComponent extends Widget {
|
|||||||
/// override this to return a new instance of the State class associated with
|
/// override this to return a new instance of the State class associated with
|
||||||
/// this StatefulComponent class, like this:
|
/// this StatefulComponent class, like this:
|
||||||
///
|
///
|
||||||
/// MyState createState() => new MyState(this);
|
/// _MyState createState() => new _MyState();
|
||||||
State createState();
|
State createState();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user