getListener method

NopListener getListener(
  1. Type t,
  2. Object? groupName,
  3. int? position
)

Implementation

NopListener getListener(Type t, Object? groupName, int? position) {
  assert(() {
    position = position == null ? null : position! + 1;
    return true;
  }());
  return findTypeArgAndAdd(t, groupName, position) ??
      _createListenerArg(t, groupName, position);
}