action property
String
get
action
The action segment, e.g. 'read' from 'posts:read'.
Implementation
String get action {
final colon = key.indexOf(':');
return colon == -1 ? '' : key.substring(colon + 1);
}