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
| main() { | |
| for(int i = 0; i < 20; i++) { | |
| print((9 * i) + (i.isEven ? 1 : 0)); | |
| } | |
| } |
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 'package:flutter/gestures.dart'; | |
| import 'package:flutter/material.dart'; | |
| final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { |
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 'package:test/test.dart'; | |
| extension ListExt<T> on List<T> { | |
| /// Remove an object from | |
| operator -(T other) async { | |
| this.remove(other); | |
| return this; |
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
| extension StringExt on String { | |
| operator -(String another) { | |
| return this.replaceAll(another, ""); | |
| } | |
| } | |
| void main() { | |
| print("Hello World" - "World"); | |
| } |
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 'package:flutter/material.dart'; | |
| extension StringExt on String { | |
| Text toH2(context) { | |
| return Text(this, style: Theme.of(context).textTheme.headline2,); | |
| } | |
| } | |
| void main() { | |
| runApp(MyApp()); |
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 'package:flutter/material.dart'; | |
| final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override |
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 'package:flutter/material.dart'; | |
| typedef GetString<T> = String Function(T from); | |
| class MyObject{ | |
| String title; | |
| String name; | |
| MyObject(this.title, this.name); | |
| } |
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
| extension StringExt on String { | |
| operator -(String another) { | |
| return this.replaceAll(another,""); | |
| } | |
| } | |
| main() { | |
| print("Hello" - "l"); | |
| } |
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 'package:flutter/material.dart'; | |
| class SplitColorIcon extends StatelessWidget { | |
| final double size; | |
| final Color leftColor; | |
| final Color rightColor; | |
| final IconData iconData; | |
| const SplitColorIcon({ | |
| Key key, |
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 BaseData<T> { | |
| T data; | |
| String message; | |
| int code; | |
| } | |
| void main() { | |
| BaseData<String> bs = new BaseData(); |
NewerOlder