Created
December 5, 2018 14:29
-
-
Save rrousselGit/bf4d9181a6d35a4db2696f91b26aa65e to your computer and use it in GitHub Desktop.
Stateless widget
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class StatelessExample extends StatelessWidget { | |
| final int foo; | |
| final int bar; | |
| const StatelessExample({Key key, this.foo, this.bar}) : super(key: key); | |
| @override | |
| Widget build(BuildContext context) { | |
| return Text('$foo $bar'); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment