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
| #!/usr/bin/env bash | |
| # | |
| # Flutter SDK Installation Script | |
| # | |
| # This script installs the Flutter SDK and optionally sets up | |
| # platform-specific development environments. | |
| # | |
| # Options: | |
| # ./install.sh --help | |
| # ./install.sh --dry-run |
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
| import 'dart:collection'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| class Person { | |
| Person({this.name, this.age}); | |
| final String name; | |
| int age; | |
| } |
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
| import 'dart:collection'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/widgets.dart'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:provider/provider.dart'; | |
| class Person with ChangeNotifier { |
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
| import 'dart:collection'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| class Person with ChangeNotifier { | |
| Person({this.name, this.age}); | |
| final String name; | |
| int age; |
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
| import 'dart:collection'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| class Person with ChangeNotifier { | |
| Person({this.name, this.age}); | |
| final String name; | |
| int age; |
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
| import 'dart:collection'; // used in test.dart | |
| import 'package:flutter/foundation.dart'; // used in test.dat | |
| import 'package:flutter/material.dart'; | |
| class Person with ChangeNotifier { | |
| Person({this.name, this.age}); | |
| final String name; | |
| int age; |
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
| import 'dart:collection'; // used in test.dart | |
| import 'package:flutter/foundation.dart'; // used in test.dart | |
| import 'package:flutter/material.dart'; | |
| class Person { | |
| Person({this.name, this.age}); | |
| final String name; | |
| final int age; | |
| } |
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
| Try using 'fold' to derive a value of a different type. |
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
| This will require using `where` and `skipWhile` together |
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
| Try using `expand` to transform a list of orders into a list of those order's items. |
NewerOlder