iconBoxWidth method

double iconBoxWidth(
  1. NodeType type
)

Width of the tier icon box (icon width plus its horizontal padding/margin).

Implementation

double iconBoxWidth(NodeType type) {
  switch (type) {
    case NodeType.folder:
      return theme.folderTheme.width +
          theme.folderTheme.padding.horizontal +
          theme.folderTheme.margin.horizontal;
    case NodeType.parent:
      return theme.parentTheme.width +
          theme.parentTheme.padding.horizontal +
          theme.parentTheme.margin.horizontal;
    case NodeType.child:
      return theme.childTheme.width +
          theme.childTheme.padding.horizontal +
          theme.childTheme.margin.horizontal;
  }
}