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
| # pip install click | |
| import click | |
| import os | |
| @click.command() | |
| @click.option('--watch', is_flag=True, help='Watch file changes during build.') | |
| @click.option('--restart', is_flag=True, help='Delete conflicting outputs.') | |
| def generate(**kwargs): | |
| '''Run build_runner source code generation''' |
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:html'; | |
| class Storage { | |
| Map db = {'count': 0}; | |
| Map deps = {'count': []}; | |
| void add(String key, dynamic value) { | |
| db[key] = value; | |
| } |
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:async'; | |
| class Observable { | |
| Function subscriberFunction; | |
| Observable(this.subscriberFunction); | |
| subscribe(observer) { | |
| this.subscriberFunction(observer); | |
| } |
NewerOlder