toMsgOrNotification method
dynamic
toMsgOrNotification()
Implementation
dynamic toMsgOrNotification() {
try {
return ['notification', toNotification()];
} catch (e) {
var msg = toMessage();
return ['message', msg];
}
}