- Mixins allow for an adapted multiple inheritance.
- Though they have the limitation that you cannot have mixins inheriting mixins.
- Extensions let you add new methods to a class but not state (new instance variables).
- But you can use stuff like the [Expando object][expando].
- They can't override methods either.
- Install the
coverage
package:pub global activate coverage
- Create a test file for running all of the tests.
- Run โ in this case, the file with all of the tests is called
.test_coverage.dart
โ:dart --pause-isolates-on-exit --disable-service-auth-codes --enable-vm-service=NNNN test/.test_coverage.dart
- ์๋๋ฐฉ์ ๋๋ก 2์ ๋์ธ์ play two moves with your opponent stones..... Illegal moves are not allowed
- ์ผํธ! Play two moves wherever you want
- ๊ฝ pass
- ๊ฐ์,๋ฐ์,๋ณด๋ฅผ winner can change the opponent's stone to his buke....the one who has more buke shapes, gets two captured stone.
- 1์ ์ 3์๋ฅผ play 3 moves on the first line
- ๊ณต์ง ํ์ play one move and get another card
- ์๋์๊ฒ ๋ด ์ด๋ฆ์ ๋ฌผ์ด๋ณด์ธ์ ask your opponent: what is my name? If he knows u give 2 points
- ํค๊ฐ ํฐ ์ฌ๋์ด ์์์ฌ๋์๊ฒ taller gives 2points to the smaller one
Unfortunately, [since mirrors currently bloat compiled code][no_support_mirrors], it isn't supported for Flutter or web apps. A [workaround][source_gen_tutorial] would be to use a package like [
source_gen
][source_gen].
Most of the info here, comes from [Understanding Reflection and Annotations in Dart tutorial][reflection_tutorial], from the Fullstack Dart and Flutter Tutorials YouTube channel. He also created a [gist][gist_tutorial] with it.
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
/// To run this, you can simply use: | |
/// | |
/// ```sh | |
/// dart different_fixed_list_initializations.dart | |
/// ``` | |
/// For more, check out the [`List` docs][list_docs]. | |
/// | |
/// The `UnmodifiableListMixin` and `FixedLengthListMixin` are actually | |
/// abstract classes, not mixins. They are both inside |
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
#j:: | |
Send, nuclear launch codes | |
return |
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
/// Using `n == 1` won't work usually because the `n` input can be `0`. | |
int factorial(int n) => n == 0 ? 1 : n * factorial(n - 1); |
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
{ | |
"editor.tokenColorCustomizations": { | |
"[One Dark Pro]": { | |
"types": "#7BC374" | |
} | |
} | |
} |