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
/// Sample library to demonstrate one way to simulate | |
/// electronics digital simulation using signals. | |
/// | |
/// High and Low values are represented as true and false. | |
/// No-connect, high impedance and floating states are skipped | |
/// for simplicity eg. | |
/// | |
/// In general, input pins are signals, while outputs are | |
/// computed values. Connections between pins are represented | |
/// by effects. |
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'; | |
void main() async { | |
final completer = Completer(); | |
print('==== THE GOOD =====\n\n'); | |
await runZonedGuarded(throwsInTask, (error, stack) { | |
print('Caught all nasty taskies errorsies.... Gollum happy! Gollum!'); | |
completer.complete(); | |
}); |
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:js' as js; | |
import 'dart:js_util'; | |
import 'package:flutter/material.dart'; | |
void main() async { | |
WidgetsFlutterBinding.ensureInitialized(); | |
runApp(const RequireRepro()); | |
} |
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:io"; | |
void main() { | |
print(new SomeFactory().message); | |
} | |
abstract class SomeFactory { | |
String get message; | |
factory SomeFactory() { |
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
@JS() | |
library gelocation_dartdevc_polyfill.dart; | |
// tracking dart-lang/sdk#32592 | |
import 'dart:async'; | |
import 'dart:html' as html; | |
import 'package:js/js.dart'; |