DefinitionStyleFunc typedef

DefinitionStyleFunc = Style? Function(String term, String description, int index, bool isTerm)

Callback for styling definition list items.

term is the term being rendered. description is the description being rendered. index is the index of the item (0-based). isTerm indicates whether this is the term (true) or description (false).

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

Implementation

typedef DefinitionStyleFunc =
    Style? Function(String term, String description, int index, bool isTerm);