TestWidgetsFlutterBinding constructor

TestWidgetsFlutterBinding()

Constructor for TestWidgetsFlutterBinding.

This constructor overrides the debugPrint global hook to point to debugPrintOverride, which can be overridden by subclasses.

Implementation

TestWidgetsFlutterBinding() : platformDispatcher = TestPlatformDispatcher(
  platformDispatcher: PlatformDispatcher.instance,
) {
  platformDispatcher.defaultRouteNameTestValue = '/';
  debugPrint = debugPrintOverride;
  debugDisableShadows = disableShadows;
}