HighlightView constructor

HighlightView(
  1. String input, {
  2. String? language,
  3. Map<String, TextStyle> theme = const {},
  4. EdgeInsetsGeometry? padding,
  5. TextStyle? textStyle,
  6. int tabSize = 8,
})

Implementation

HighlightView(
  String input, {
  this.language,
  this.theme = const {},
  this.padding,
  this.textStyle,
  int tabSize = 8, // TODO: https://github.com/flutter/flutter/issues/50087
}) : source = input.replaceAll('\t', ' ' * tabSize);