TomlViewerColors constructor

const TomlViewerColors({
  1. Color value = const Color(0xFFD32F2F),
  2. Color type = const Color(0xFF757575),
  3. Color symbol = const Color(0xFF9E9E9E),
  4. Color nonRootKey = const Color(0xFF1565C0),
  5. Color rootKey = const Color(0xFF0D47A1),
  6. Color tableKey = const Color(0xFF00796B),
  7. Color arrayIndex = const Color(0xFF757575),
  8. Color arrayExpandable = const Color(0xFF00897B),
  9. Color errorHighlight = const Color(0xFFF44336),
  10. Color errorText = const Color(0xFFC62828),
  11. Color searchHighlight = const Color(0xFFFFE082),
  12. Color lineNumber = const Color(0xFF9E9E9E),
})

Creates a colour palette. Every colour has a light-mode default.

Implementation

const TomlViewerColors({
  this.value = const Color(0xFFD32F2F),
  this.type = const Color(0xFF757575),
  this.symbol = const Color(0xFF9E9E9E),
  this.nonRootKey = const Color(0xFF1565C0),
  this.rootKey = const Color(0xFF0D47A1),
  this.tableKey = const Color(0xFF00796B),
  this.arrayIndex = const Color(0xFF757575),
  this.arrayExpandable = const Color(0xFF00897B),
  this.errorHighlight = const Color(0xFFF44336),
  this.errorText = const Color(0xFFC62828),
  this.searchHighlight = const Color(0xFFFFE082),
  this.lineNumber = const Color(0xFF9E9E9E),
});