selectDevice static method

void selectDevice(
  1. BuildContext context,
  2. DeviceIdentifier deviceIdentifier
)

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);
}