copyWith method
TreeTheme
copyWith({
- ValueGetter<
BranchLine?> ? branchLine, - ValueGetter<
EdgeInsetsGeometry?> ? padding, - ValueGetter<
bool?> ? expandIcon, - ValueGetter<
bool?> ? allowMultiSelect, - 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(),
);
}