TomlSourceView constructor

const TomlSourceView({
  1. Key? key,
  2. required String source,
  3. required TomlViewerConfig config,
  4. List<TomlParseError> errors = const [],
  5. bool showLineNumbers = true,
  6. String? searchQuery,
  7. EdgeInsetsGeometry padding = EdgeInsets.zero,
  8. bool shrinkWrap = false,
  9. ScrollPhysics? physics,
  10. ScrollController? scrollController,
})

Creates a source view.

Implementation

const TomlSourceView({
  super.key,
  required this.source,
  required this.config,
  this.errors = const [],
  this.showLineNumbers = true,
  this.searchQuery,
  this.padding = EdgeInsets.zero,
  this.shrinkWrap = false,
  this.physics,
  this.scrollController,
});