codeblock constructor

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

Implementation

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