openSpecificMailApp method
Opens a specific email app by its ID
Implementation
@override
Future<bool> openSpecificMailApp({
required String appId,
EmailContent? emailContent,
}) async {
try {
final bool? result = await methodChannel.invokeMethod(
'openSpecificMailApp',
{'appId': appId, ...?emailContent?.toMap()},
);
return result ?? false;
} on PlatformException catch (e) {
debugPrint('Error opening specific mail app: ${e.message}');
return false;
}
}