This file contains 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
// Before Dart 2 | |
Widget build(BuildContext context) { | |
return new Container( | |
height: 56.0, | |
padding: const EdgeInsets.symmetric(horizontal: 8.0), | |
decoration: new BoxDecoration(color: Colors.blue[500]), | |
child: new Row( | |
... | |
), | |
); |
This file contains 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
void main() { | |
List<int> prices = ['99', '27', '10000', '20000000']; | |
// Sort in place from smallest to largest | |
prices.sort(); | |
print('Lowest price is ${prices[0]}!'); | |
} |