truncateNotification method
- dynamic message
Truncates the notification message.
message
is the notification message.
Returns the truncated message.
Implementation
truncateNotification(message) {
var pos = message.lastIndexOf('by');
String? result = (pos != -1) ? message.substring(0, pos) : message;
return result;
}