ondevicechange property
(dynamic Function(dynamic event)?)
ondevicechange
getter/setter pair
A function you provide which accepts as input a Event object describing the devicechange event that occurred. There is no information about the change included in the event object; to get the updated list of devices, you'll have to use enumerateDevices().
Implementation
Function(dynamic event)? ondevicechange;