BlockStyleResolver typedef
BlockStyleResolver =
BlockStyle Function(ElementNode node, BlockStyle base)
Refines a block's presentation using the node itself.
LexicalTheme.blockStyles is keyed on the type string, which is what lets this package style headings and lists without importing the packages that define them. Some types present differently depending on a field — a heading's level, a table cell's header flags — and a type string cannot express that. This hook is where those cases live, and it is supplied by whoever does know the node type.
Implementation
typedef BlockStyleResolver =
BlockStyle Function(ElementNode node, BlockStyle base);