onAudioRoutingChanged property
Callback when the audio routing changes.
This callback is applicable only on Android, iOS, and macOS platforms.
routingThe current audio route. See AudioRoute.
Implementation
final void Function(int routing)? onAudioRoutingChanged;