activate method
Activates the test driver, which will also activate the communicator.
Implementation
void activate([ConnectionChangedCallback? onConnectionChanged]) async {
if (testController != null) {
state.active = true;
communicator!.onConnectionChanged =
onConnectionChanged ?? _onConnectionChanged;
if (communicator!.active != true) {
await communicator!.activate(
() => TestDeviceInfoHelper.initialize(null),
);
}
_commandSubscription = communicator!.commandStream.listen(
(command) => _onCommandReceived(command),
);
}
}