HighlightTheme constructor

const HighlightTheme({
  1. TextStyle keywordStyle = const TextStyle(color: Color.fromRGBO(182, 87, 0, 1)),
  2. TextStyle commentStyle = const TextStyle(color: Colors.grey, fontStyle: FontStyle.italic),
  3. TextStyle multiLineCommentStyle = const TextStyle(color: Colors.grey, fontStyle: FontStyle.italic),
  4. TextStyle specialIdentifiersStyle = const TextStyle(color: Color.fromRGBO(160, 96, 255, 1)),
  5. TextStyle numberConstantStyle = const TextStyle(color: Colors.yellow),
  6. TextStyle stringConstantStyle = const TextStyle(color: Color.fromRGBO(80, 145, 0, 1)),
  7. TextStyle operatorStyle = const TextStyle(color: Colors.red),
  8. TextStyle specialCharacterStyle = const TextStyle(color: Colors.white),
  9. TextStyle identifierStyle = const TextStyle(color: Color.fromRGBO(0, 130, 250, 1)),
  10. TextStyle functionIdentifierStyle = const TextStyle(color: Color.fromRGBO(220, 120, 140, 1)),
  11. Color textColor = Colors.white,
  12. Color bgColor = const Color.fromRGBO(20, 20, 20, 1),
})

Implementation

const HighlightTheme({
  this.keywordStyle = const TextStyle(color:Color.fromRGBO(182, 87, 0, 1)),
  this.commentStyle = const TextStyle(color:Colors.grey,fontStyle: FontStyle.italic),
  this.multiLineCommentStyle = const TextStyle(color:Colors.grey,fontStyle: FontStyle.italic),
  this.specialIdentifiersStyle = const TextStyle(color: Color.fromRGBO(160, 96, 255, 1)),
  this.numberConstantStyle = const TextStyle(color: Colors.yellow),
  this.stringConstantStyle = const TextStyle(color: Color.fromRGBO(80,145,0,1)),
  this.operatorStyle = const TextStyle(color:Colors.red),
  this.specialCharacterStyle = const TextStyle(color:Colors.white),
  this.identifierStyle  = const TextStyle(color: Color.fromRGBO(0,130,250,1)),
  this.functionIdentifierStyle  = const TextStyle(color:  Color.fromRGBO(220,120,140,1)),
  this.textColor = Colors.white,
  this.bgColor = const Color.fromRGBO(20,20,20,1)
});