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 highlights secondarySpans 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 highlights secondarySpans to provide the user with additional context.
subspan(int start, [int? end]) SourceSpan

Available on SourceSpan, provided by the SourceSpanExtension extension

Returns a span from start code units (inclusive) to end code units (exclusive) after the beginning of this span.