AnySyntaxHighlighterTheme constructor

const AnySyntaxHighlighterTheme({
  1. TextStyle classStyle = const TextStyle(color: Colors.cyanAccent),
  2. TextStyle staticStyle = const TextStyle(color: Colors.pinkAccent),
  3. TextStyle constructor = const TextStyle(color: Colors.orangeAccent),
  4. TextStyle multilineComment = const TextStyle(color: Colors.red, fontStyle: FontStyle.italic),
  5. TextStyle method = const TextStyle(color: Colors.lightBlueAccent),
  6. TextStyle private = const TextStyle(color: Colors.grey),
  7. TextStyle comment = const TextStyle(color: Colors.red, fontStyle: FontStyle.italic),
  8. TextStyle keyword = const TextStyle(color: Colors.blueAccent, fontWeight: FontWeight.bold),
  9. TextStyle identifier = const TextStyle(color: Colors.white),
  10. TextStyle function = const TextStyle(color: Colors.greenAccent),
  11. TextStyle number = const TextStyle(color: Colors.yellowAccent),
  12. TextStyle string = const TextStyle(color: Colors.lightGreen),
  13. TextStyle operator = const TextStyle(color: Colors.deepOrange),
  14. TextStyle separator = const TextStyle(color: Colors.white),
  15. Decoration decoration = const BoxDecoration(color: Colors.black87),
  16. double? letterSpacing = 1,
  17. double? wordSpacing,
  18. String? fontFamily,
  19. List<FontFeature> fontFeatures = const [],
  20. TextStyle lineNumber = const TextStyle(color: Colors.white, fontFeatures: [FontFeature.tabularFigures()]),
})

Implementation

const AnySyntaxHighlighterTheme(
    {this.classStyle = const TextStyle(
      color: Colors.cyanAccent,
    ),
    this.staticStyle = const TextStyle(
      color: Colors.pinkAccent,
    ),
    this.constructor = const TextStyle(
      color: Colors.orangeAccent,
    ),
    this.multilineComment = const TextStyle(
      color: Colors.red,
      fontStyle: FontStyle.italic,
    ),
    this.method = const TextStyle(
      color: Colors.lightBlueAccent,
    ),
    this.private = const TextStyle(
      color: Colors.grey,
    ),
    final TextStyle comment = const TextStyle(
      color: Colors.red,
      fontStyle: FontStyle.italic,
    ),
    final TextStyle keyword = const TextStyle(
        color: Colors.blueAccent, fontWeight: FontWeight.bold),
    final TextStyle identifier = const TextStyle(
      color: Colors.white,
    ),
    final TextStyle function = const TextStyle(
      color: Colors.greenAccent,
    ),
    final TextStyle number = const TextStyle(
      color: Colors.yellowAccent,
    ),
    final TextStyle string = const TextStyle(
      color: Colors.lightGreen,
    ),
    final TextStyle operator = const TextStyle(
      color: Colors.deepOrange,
    ),
    final TextStyle separator = const TextStyle(
      color: Colors.white,
    ),
    final Decoration decoration = const BoxDecoration(color: Colors.black87),
    this.letterSpacing = 1,
    this.wordSpacing,
    this.fontFamily,
    this.fontFeatures = const [],
    this.lineNumber = const TextStyle(
        color: Colors.white, fontFeatures: [FontFeature.tabularFigures()])})
    : super(
          comment: comment,
          keyword: keyword,
          identifier: identifier,
          function: function,
          number: number,
          string: string,
          operator: operator,
          separator: separator,
          decoration: decoration);