selectDevice static method
Select a device from its unique deviceIdentifier
.
All the identifiers are available from Devices.
Implementation
static void selectDevice(
BuildContext context,
DeviceIdentifier deviceIdentifier,
) {
final store = Provider.of<DevicePreviewStore>(context, listen: false);
store.selectDevice(deviceIdentifier);
}