HighlightViewSelectable constructor

HighlightViewSelectable(
  1. String input, {
  2. Key? key,
  3. String? language,
  4. Map<String, TextStyle> theme = const {},
  5. EdgeInsetsGeometry? padding,
  6. TextStyle? textStyle,
  7. bool wantKeepAlive = false,
  8. int tabSize = 8,
})

Implementation

HighlightViewSelectable(
  String input, {
  super.key,
  this.language,
  this.theme = const {},
  this.padding,
  this.textStyle,
  this.wantKeepAlive = false,
  int tabSize = 8,
}) : source = input.replaceAll('\t', ' ' * tabSize);