platform_plus 1.1.0 platform_plus: ^1.1.0 copied to clipboard
Platform Plus is a package for easily figuring out information about the platform your code is running on
import 'package:platform_plus/platform_plus.dart';
void someCode() async {
if (platform.isAndroidNative) {
// Do something
} else if (platform.isAndroidWeb) {
// Do something else
}
if (await platform.isPhysicalDevice()) {
// Do something
}
}