getIdentifier static method
- CustomSemanticsAction action
Get the identifier for a given action
.
Implementation
static int getIdentifier(CustomSemanticsAction action) {
int? result = _ids[action];
if (result == null) {
result = _nextId++;
_ids[action] = result;
_actions[result] = action;
}
return result;
}