getByRuntimeType method

Node? getByRuntimeType(
  1. Type type, [
  2. Key? key
])

Checks if a node with this exact runtimeType and optional key exists.

Implementation

Node? getByRuntimeType(Type type, [Key? key]) =>
    _nodes[Node.buildRuntimeKey(type, key)];