How to use xrechnung-visualization
1. Install Ant
Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Then install ant using brew
Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Then install ant using brew
import 'package:flutter/material.dart'; | |
Future<void> main() async { | |
runApp(Builder( | |
builder: (context) => const MyApp(), | |
)); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({ |
void main() { | |
final Object something = TypeA(); | |
something.matchTypes({ | |
TypeA : () => print("found A"), | |
TypeB : () => print("found B"), | |
}); | |
} |
#!/bin/sh | |
# Usage: ./tool/run_coverage.sh test/all_tests.dart | |
(pub global list | grep coverage) || { | |
# install coverage when not found | |
pub global activate coverage | |
} | |
pub global run coverage:collect_coverage \ |
void main() { | |
final String name = "Adam"; | |
print("=== ?? ==="); | |
// does not execute defaultValue() | |
print(name ?? defaultValue()); | |
print("=== orDefault ==="); | |
// executes defaultValue() | |
print(name.orDefault(defaultValue())); |
Kotlin coding dojo no. 8: convert a given integer number to a LCD style number, see Part 1 of NumberToLCDKata
0123456789
|
V
import 'dart:convert'; | |
import 'package:deep_pick/deep_pick.dart'; | |
import 'package:http/http.dart' as http; | |
Future<void> main() async { | |
/// Request data from a json API | |
final response = await http.get("https://pokeapi.co/api/v2/pokemon/1"); | |
final json = jsonDecode(response.body); |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: HomePage(), | |
); |
class Apple {} | |
class Banana {} | |
List<Apple> bag([List<Apple> apples]) => apples ?? <Banana>[]; | |
void main() { | |
// ok | |
final bag1 = bag([Apple()]); | |
print(bag1); |