format method

void format(
  1. Style? style
)

Formats this node and optimizes it with adjacent leaf nodes if needed.

Implementation

void format(Style? style) {
  if (style != null && style.isNotEmpty) {
    applyStyle(style);
  }
  adjust();
}