availableDeviceIdentifiers static method

List<DeviceIdentifier> availableDeviceIdentifiers(
  1. BuildContext context
)

The list of all available device identifiers.

Implementation

static List<DeviceIdentifier> availableDeviceIdentifiers(
  BuildContext context,
) {
  final store = Provider.of<DevicePreviewStore>(context, listen: false);
  return store.devices.map((info) => info.identifier).toList();
}