platform_plus 1.0.3 platform_plus: ^1.0.3 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() {
if (platform.isAndroidNative) {
// Do something
} else if (platform.isAndroidWeb) {
// Do something else
}
}