StyledBlockStyleFunc typedef

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

Callback for block 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 StyledBlockStyleFunc = Style? Function(String line, int lineIndex);