addNotificationChannel method
notificationType (email or SMS) item (user.email or phone number for SMS)
Implementation
Future addNotificationChannel(
{required String? notificationType, required String item}) async {
var data = {"notificationType": notificationType, "item": item};
try {
await _channel.invokeMethod(_addNotificationChannel, data).then((result) {
logger.d('addNotificationChannel $result');
});
return 'Success';
} on PlatformException catch (e) {
logger.d(e);
return e;
}
}