TomlViewerStyle constructor

const TomlViewerStyle({
  1. TextStyle? rootKeyStyle,
  2. TextStyle? nonRootKeyStyle,
  3. TextStyle? tableKeyStyle,
  4. TextStyle? valueStyle,
  5. TextStyle? separatorStyle,
  6. TextStyle? typeStyle,
  7. TextStyle? arrayIndexStyle,
  8. TextStyle? arrayExpandableStyle,
  9. TextStyle? searchMatchStyle,
  10. double indentation = 14.0,
  11. double rowSpacing = 4.0,
  12. double rowVerticalPadding = 4.0,
  13. String separator = ' = ',
  14. double separatorGap = 3.0,
  15. int? maxValueLines = 1,
  16. int? maxValueLength = 512,
  17. IconData? collapsedIcon = Icons.chevron_right,
  18. IconData? expandedIcon = Icons.expand_more,
  19. double expandIconSize = 16.0,
  20. Color? expandIconColor,
})

Creates a style. Every parameter has a sensible default.

Implementation

const TomlViewerStyle({
  this.rootKeyStyle,
  this.nonRootKeyStyle,
  this.tableKeyStyle,
  this.valueStyle,
  this.separatorStyle,
  this.typeStyle,
  this.arrayIndexStyle,
  this.arrayExpandableStyle,
  this.searchMatchStyle,
  this.indentation = 14.0,
  this.rowSpacing = 4.0,
  this.rowVerticalPadding = 4.0,
  this.separator = ' = ',
  this.separatorGap = 3.0,
  this.maxValueLines = 1,
  this.maxValueLength = 512,
  this.collapsedIcon = Icons.chevron_right,
  this.expandedIcon = Icons.expand_more,
  this.expandIconSize = 16.0,
  this.expandIconColor,
});