SourceSpanExtension extension
Extension methods on the base SourceSpan API.
- on
Methods
-
highlightMultiple(
String label, Map< SourceSpan, String> secondarySpans, {bool color = false, String? primaryColor, String? secondaryColor}) → String -
Available on SourceSpan, provided by the SourceSpanExtension extension
Like SourceSpan.highlight, but also highlightssecondarySpans
to provide the user with additional context. -
messageMultiple(
String message, String label, Map< SourceSpan, String> secondarySpans, {bool color = false, String? primaryColor, String? secondaryColor}) → String -
Available on SourceSpan, provided by the SourceSpanExtension extension
Like SourceSpan.message, but also highlightssecondarySpans
to provide the user with additional context. -
subspan(
int start, [int? end]) → SourceSpan -
Available on SourceSpan, provided by the SourceSpanExtension extension
Returns a span fromstart
code units (inclusive) toend
code units (exclusive) after the beginning of this span.