createNode method

FNode createNode(
  1. String type, [
  2. Map<String, dynamic> options = const {}
])

Implementation

FNode createNode(String type, [Map<String, dynamic> options = const {}]) {
  final definition = _nodes[type];
  if (definition == null) {
    throw StateError('No plugin registered for node type "$type"');
  }
  return definition.create(options);
}