TreeView<T> constructor

TreeView<T>({
  1. Event<TreeViewExpansionEvent>? onDidExpandElement,
  2. Event<TreeViewExpansionEvent>? onDidCollapseElement,
  3. List? selection,
  4. Event<TreeViewSelectionChangeEvent>? onDidChangeSelection,
  5. bool? visible,
  6. Event<TreeViewVisibilityChangeEvent>? onDidChangeVisibility,
  7. Event<TreeCheckboxChangeEvent>? onDidChangeCheckboxState,
  8. String? message,
  9. String? title,
  10. String? description,
  11. ViewBadge? badge,
  12. Future reveal(
    1. dynamic, [
    2. dynamic
    ])?,
})

Implementation

factory TreeView({
  _i3.Event<_i3.TreeViewExpansionEvent<_i2.dynamic>>? onDidExpandElement,
  _i3.Event<_i3.TreeViewExpansionEvent<_i2.dynamic>>? onDidCollapseElement,
  _i2.List<_i2.dynamic>? selection,
  _i3.Event<_i3.TreeViewSelectionChangeEvent<_i2.dynamic>>?
      onDidChangeSelection,
  _i2.bool? visible,
  _i3.Event<_i3.TreeViewVisibilityChangeEvent>? onDidChangeVisibility,
  _i3.Event<_i3.TreeCheckboxChangeEvent<_i2.dynamic>>?
      onDidChangeCheckboxState,
  _i2.String? message,
  _i2.String? title,
  _i2.String? description,
  _i3.ViewBadge? badge,
  _i2.Future<_i2.dynamic> Function(
    _i2.dynamic, [
    _i2.dynamic,
  ])? reveal,
}) =>
    TreeView._(
      onDidExpandElement: onDidExpandElement ?? _i6.undefined,
      onDidCollapseElement: onDidCollapseElement ?? _i6.undefined,
      selection: selection ?? _i6.undefined,
      onDidChangeSelection: onDidChangeSelection ?? _i6.undefined,
      visible: visible,
      onDidChangeVisibility: onDidChangeVisibility ?? _i6.undefined,
      onDidChangeCheckboxState: onDidChangeCheckboxState ?? _i6.undefined,
      message: message,
      title: title,
      description: description,
      badge: badge ?? _i6.undefined,
      reveal: reveal == null ? null : _i5.allowInterop(reveal),
    );