Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import 'dart:async';
import 'package:flutter_test/flutter_test.dart';
void main() async {
LiveTestWidgetsFlutterBinding();
Future outsideFuture;
setUp(() {
outsideFuture = Future.microtask(() {
return 'outside';
});
});
testWidgets("awaiting future with value from setUp works", (t) async {
Future insideFuture = Future.microtask(() {
return 'inside';
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.