SmartSyntaxWidgetTheme constructor

const SmartSyntaxWidgetTheme({
  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. double? letterSpacing = 1,
  16. double? wordSpacing,
  17. String? fontFamily,
  18. List<FontFeature> fontFeatures = const [],
  19. TextStyle lineNumber = const TextStyle(color: Colors.white, fontFeatures: [FontFeature.tabularFigures()]),
  20. BoxDecoration? codeBackgroundDecoration,
  21. TextStyle? codeHeaderTextStyle,
  22. BoxDecoration? codeHeaderDecoration,
})

Implementation

const SmartSyntaxWidgetTheme({
  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,
  ),
  this.letterSpacing = 1,
  this.wordSpacing,
  this.fontFamily,
  this.fontFeatures = const [],
  this.lineNumber = const TextStyle(
    color: Colors.white,
    fontFeatures: [FontFeature.tabularFigures()],
  ),
  this.codeBackgroundDecoration,
  this.codeHeaderTextStyle,
  this.codeHeaderDecoration,
}) : super(
        comment: comment,
        keyword: keyword,
        identifier: identifier,
        function: function,
        number: number,
        string: string,
        operator: operator,
        separator: separator,
      );