audioRouteChanged property Null safety
Occurs when the local audio playback route changes.
This callback returns that the audio route switched to an earpiece, speakerphone, headset, or Bluetooth device.
See AudioOutputRouting for the definition of the routing.
AudioRouteCallback typedef includes the following parameter:
routing: Audio output routing.