merge method Null safety
- TreeViewTheme other
Returns a new theme that matches this TreeView theme but with some values replaced by the non-null parameters of the given icon theme. If the given TreeViewTheme is null, simply returns this theme.
Implementation
TreeViewTheme merge(TreeViewTheme other) {
return copyWith(
colorScheme: other.colorScheme,
levelPadding: other.levelPadding,
iconPadding: other.iconPadding,
iconTheme: other.iconTheme,
expanderTheme: other.expanderTheme,
labelStyle: other.labelStyle,
dense: other.dense,
verticalSpacing: other.verticalSpacing,
horizontalSpacing: other.horizontalSpacing,
parentLabelStyle: other.parentLabelStyle,
labelOverflow: other.labelOverflow,
parentLabelOverflow: other.parentLabelOverflow);
}