hasNativeIntegration property
bool
hasNativeIntegration
Indicates whether a native integration is available.
Implementation
bool get hasNativeIntegration {
if (isWeb) {
return false;
}
// We need to check the platform after we checked for web, because
// the OS checks return true when the browser runs on the checked platform.
// Example: platform.isAndroid return true if the browser is used on an
// Android device.
if (platform.isAndroid || platform.isIOS || platform.isMacOS) {
return true;
}
return false;
}