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
// When to use expectAsync? | |
import 'package:unittest/unittest.dart'; | |
import 'dart:async'; | |
syncAdd(x, y) => x + y; | |
asyncAdd(x, y) => new Future.value(x + y); | |
void main() { |
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
// index.html | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<link rel="import" href="foo_element.html"> | |
<link rel="import" href="bar_element.html"> |
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
import 'dart:html'; | |
import 'dart:js'; | |
void main() { | |
JsObject google = context['google']; | |
google.callMethod('load', ['visualization', '1', | |
new JsObject.jsify({'packages': ['corechart']})]); | |
google.callMethod('setOnLoadCallback', [() { | |
var data = google['visualization'].callMethod('arrayToDataTable', | |
new JsObject.jsify([ |
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
var foo = "fee fi fo fum"; | |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<div> | |
<h3>Person record</h3> | |
<p><em>First Name: </em> {{ person['firstName'] }}</p> | |
<p><em>Last Name: </em> {{ person['lastName'] }}</p> | |
<p><em>Address: </em> |
NewerOlder