shutdownAgent static method
Blocks sending beacons to the collector.
No data will come from the agent while shut down. All other activities of the agent will continue, except for event sending.
Method might throw Exception.
See also restartAgent.
Implementation
static Future<void> shutdownAgent() async {
try {
await channel.invokeMethod<void>('shutdownAgent');
} on PlatformException catch (e) {
throw Exception(e.details);
}
}