test_flutter_services_binding
A subset of TestWidgetsFlutterBinding
specifically for initializing the ServicesBinding
.
import 'package:flutter_test/flutter_test.dart';
import 'package:test_flutter_services_binding/test_flutter_services_binding.dart';
void main() {
TestFlutterServicesBinding.ensureInitialized();
testWidgets('...', (tester) async {
// ...
});
}