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'; | |
Future<void> b(value) async { | |
await Future.delayed(Duration(seconds: 0)); | |
// OR: remove the line ABOVE for fun effect. | |
print('b(${value})'); | |
} | |
Future<void> a(value) async { | |
print('a(${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
testWidgets('StreamController adding null wtf', (WidgetTester tester) async { | |
final source = StreamController<String>(); | |
var index = 0; | |
await tester.pumpWidget(MaterialApp( | |
home: StreamBuilder( | |
stream: source.stream, | |
builder: (context, snapshot) { | |
index += 1; | |
return Text('$index'); |
OlderNewer