morph function

Morph? morph(
  1. String componentName
)

Implementation

Morph? morph(String componentName) {
  if (componentName.isEmpty) {
    return null;
  }

  final node = MorphrService.instance.getComponent(componentName);
  if (node == null) return null;

  return Morph(node);
}