HighlightResult constructor

HighlightResult({
  1. required String language,
  2. required num relevance,
  3. required TokenTreeEmitter emitter,
  4. bool illegal = false,
  5. Mode? top,
  6. HighlightContinuation? continuation,
  7. HighlightResult? secondBest,
  8. String? code,
  9. dynamic errorRaised,
  10. Map<String, dynamic>? illegalBy,
  11. String? value,
})

Implementation

HighlightResult({
  required this.language,
  required this.relevance,
  required this.emitter,
  this.illegal = false,
  this.top,
  this.continuation,
  this.secondBest,
  this.code,
  this.errorRaised,
  this.illegalBy,
  String? value,
}) : _value = value;