expand method

NotationResult expand(
  1. String text, {
  2. required String screen,
})

Expands text (the file at path) as the canvas screen: a page (its one leading ### Name line is left out), or a component.

Implementation

NotationResult expand(String text, {required String screen}) {
  final self = notationComponentType(text);
  return _expand(self == null ? _withoutScreenHeading(text) : text, _libraryFor(self), screen: screen);
}