audioRouteChanged property Null safety

AudioRouteCallback? audioRouteChanged
read / write

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.

The AudioRouteCallback typedef includes the following parameter:


AudioRouteCallback? audioRouteChanged;