copyWith method

TreeTheme copyWith({
  1. ValueGetter<BranchLine?>? branchLine,
  2. ValueGetter<EdgeInsetsGeometry?>? padding,
  3. ValueGetter<bool?>? expandIcon,
  4. ValueGetter<bool?>? allowMultiSelect,
  5. ValueGetter<bool?>? recursiveSelection,
})

Implementation

TreeTheme copyWith({
  ValueGetter<BranchLine?>? branchLine,
  ValueGetter<EdgeInsetsGeometry?>? padding,
  ValueGetter<bool?>? expandIcon,
  ValueGetter<bool?>? allowMultiSelect,
  ValueGetter<bool?>? recursiveSelection,
}) {
  return TreeTheme(
    branchLine: branchLine == null ? this.branchLine : branchLine(),
    padding: padding == null ? this.padding : padding(),
    expandIcon: expandIcon == null ? this.expandIcon : expandIcon(),
    allowMultiSelect:
        allowMultiSelect == null ? this.allowMultiSelect : allowMultiSelect(),
    recursiveSelection: recursiveSelection == null
        ? this.recursiveSelection
        : recursiveSelection(),
  );
}