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', <String, Object?>{
'appId': appId,
if (emailContent != null) 'emailContent': emailContent.toMap(),
});
return result ?? false;
} on PlatformException catch (e) {
debugPrint('Error opening specific mail app: ${e.message}');
return false;
}
}