TestPlatformDispatcher constructor Null safety

TestPlatformDispatcher(
  1. {required PlatformDispatcher platformDispatcher}
)

Constructs a TestPlatformDispatcher that defers all behavior to the given dart:ui.PlatformDispatcher unless explicitly overridden for test purposes.

Implementation

TestPlatformDispatcher({
  required ui.PlatformDispatcher platformDispatcher,
}) : _platformDispatcher = platformDispatcher;