platform static method
The current target platform for the currently selected device.
Implementation
static TargetPlatform platform(BuildContext context) {
final platform = context.select(
(DevicePreviewStore store) => store.deviceInfo.identifier.platform,
);
return platform;
}