asyncParsing property

bool asyncParsing
final

Whether to parse the markdown off the UI thread in a background isolate.

When true, parsing runs via Isolate.run so long documents do not block the UI thread — useful for ListViews that build many PrismMarkdown widgets, where synchronous parsing causes scroll jitter (see flutter/flutter#81772). While parsing, placeholder is displayed. Defaults to false (synchronous parsing, no isolate overhead) which is faster for short documents.

Implementation

final bool asyncParsing;