const
TreeViewTheme(- {ColorScheme colorScheme = const ColorScheme.light(),
- IconThemeData iconTheme = const IconThemeData.fallback(),
- ExpanderThemeData expanderTheme = const ExpanderThemeData.fallback(),
- TextStyle labelStyle = const TextStyle(),
- TextStyle parentLabelStyle = const TextStyle(fontWeight: FontWeight.bold),
- TextOverflow? labelOverflow,
- TextOverflow? parentLabelOverflow,
- double levelPadding = _kDefaultLevelPadding,
- bool dense = true,
- double? verticalSpacing,
- double? horizontalSpacing,
- double iconPadding = 8,
- Duration expandSpeed = const Duration(milliseconds: _kExpandSpeed)}
)
Implementation
const TreeViewTheme({
this.colorScheme: const ColorScheme.light(),
this.iconTheme: const IconThemeData.fallback(),
this.expanderTheme: const ExpanderThemeData.fallback(),
this.labelStyle: const TextStyle(),
this.parentLabelStyle: const TextStyle(fontWeight: FontWeight.bold),
this.labelOverflow,
this.parentLabelOverflow,
this.levelPadding: _kDefaultLevelPadding,
this.dense: true,
this.verticalSpacing,
this.horizontalSpacing,
this.iconPadding: 8,
this.expandSpeed: const Duration(milliseconds: _kExpandSpeed),
});