BoxContentStyleFunc typedef

BoxContentStyleFunc = Style? Function(String line, int lineIndex)

Callback for box content styling.

line is the content line being rendered. lineIndex is the index of the line (0-based).

Return a Style to apply to the line, or null for no styling.

Implementation

typedef BoxContentStyleFunc = Style? Function(String line, int lineIndex);