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
| void main() {} |
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
| void main() { | |
| // dynamic can take any type | |
| dynamic dy1 = 'Text'; | |
| dy1 = 2; | |
| // String type | |
| String s1 = 'Hello'; | |
| String s2 = "World"; | |
| String s3 = ''' |
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
| /// Every app must have a top-level main() function, which serves as the entrypoint to the app. | |
| void main() { | |
| print('Hello, 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
| // Single-line comments | |
| /* | |
| * Multi-line comments | |
| */ | |
| /// | |
| /// Documentation comments | |
| /// |
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
| abstract class BaseEvent<State, Bloc> { | |
| Stream<State> call(Bloc bloc); | |
| } | |
| class AuthBloc extends Bloc<AuthEvent, AuthState> { | |
| @override | |
| AccountsState get initialState => InitialAuthState(); | |
| @override | |
| Stream<AccountsState> mapEventToState(AuthEvent event) async* { |
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
| docker kill $(docker ps -q) && \ | |
| docker rm $(docker ps -a -q) |
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
| { | |
| "name": "todo", | |
| "version": "0.0.1", | |
| "private": true, | |
| "scripts": { | |
| "start": "node node_modules/react-native/local-cli/cli.js start", | |
| "test": "jest" | |
| }, | |
| "dependencies": { | |
| "babel-plugin-module-resolver": "^3.1.1", |
NewerOlder