hasApp static method
Check if the app with `androidApplicationId`
is installed on the device.
Returns true
if found or false
otherwise.
`androidApplicationId`
should not be empty or null.
Implementation
static Future<bool> hasApp({required String androidApplicationId}) async {
assert(
androidApplicationId.isNotEmpty,
"[androidApplicationId] cannot be empty",
);
final result = await _channel.invokeMethod<bool>(
'hasApp',
<String, Object>{
'applicationId': androidApplicationId,
},
);
return result ?? false;
}