TomlView.fromMap constructor

const TomlView.fromMap(
  1. Map<String, dynamic> map, {
  2. Key? key,
  3. TomlViewerConfig? config,
  4. TomlExpandController? expandController,
  5. TomlViewMode mode = TomlViewMode.tree,
  6. String? searchQuery,
  7. bool caseSensitiveSearch = false,
  8. EdgeInsetsGeometry padding = EdgeInsets.zero,
  9. bool shrinkWrap = false,
  10. ScrollPhysics? physics,
  11. ScrollController? scrollController,
  12. WidgetBuilder? loadingBuilder,
  13. Widget errorBuilder(
    1. BuildContext context,
    2. Object error
    )?,
  14. WidgetBuilder? emptyBuilder,
})

Creates a TomlView from a pre-parsed Map.

Implementation

const TomlView.fromMap(
  Map<String, dynamic> map, {
  super.key,
  this.config,
  this.expandController,
  this.mode = TomlViewMode.tree,
  this.searchQuery,
  this.caseSensitiveSearch = false,
  this.padding = EdgeInsets.zero,
  this.shrinkWrap = false,
  this.physics,
  this.scrollController,
  this.loadingBuilder,
  this.errorBuilder,
  this.emptyBuilder,
})  : _source = _TomlSource.map,
      _map = map,
      _assetFilePath = null,
      _content = null,
      _loader = null,
      _stream = null;