isAndroid static method
Returns isAndroid for the nearest PlatformQuery ancestor or false, if no such ancestor exists.
Implementation
static bool isAndroid(BuildContext context) {
return PlatformQuery.maybeOf(context)?.isAndroid ?? false;
}
Returns isAndroid for the nearest PlatformQuery ancestor or false, if no such ancestor exists.
static bool isAndroid(BuildContext context) {
return PlatformQuery.maybeOf(context)?.isAndroid ?? false;
}