SourceSpanExtension extension Null safety
Extension methods on the base SourceSpan API.
- on
Methods
-
highlightMultiple(
String label, Map< SourceSpan, String> secondarySpans, {bool color = false, String? primaryColor, String? secondaryColor}) → String -
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 -
Like SourceSpan.message, but also highlights
secondarySpans
to provide the user with additional context. -
subspan(
int start, [int? end]) → SourceSpan -
Returns a span from
start
code units (inclusive) toend
code units (exclusive) after the beginning of this span.