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