installed method
Implementation
@override
Future<bool> installed({WhatsApp type = WhatsApp.standard}) async {
// Desktop platforms
if (Platform.isMacOS || Platform.isWindows || Platform.isLinux) {
return await super.installed(type: type);
}
// Mobile platforms
if (Platform.isAndroid || Platform.isIOS) {
final installed = await methodChannel.invokeMethod<int>(
'installed',
type.packageName,
);
return installed == 1;
}
throw UnimplementedError('Unknown platform ${Platform.operatingSystem}');
}