TocWidget constructor
const
TocWidget({
- Key? key,
- required TocController controller,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- EdgeInsetsGeometry? padding,
- TocItemBuilder? itemBuilder,
- TextStyle? tocTextStyle,
- TextStyle? currentTocTextStyle,
Implementation
const TocWidget({
Key? key,
required this.controller,
this.physics,
this.shrinkWrap = false,
this.padding,
this.itemBuilder,
TextStyle? tocTextStyle,
TextStyle? currentTocTextStyle,
}) : tocTextStyle = tocTextStyle ?? defaultTocTextStyle,
currentTocTextStyle = currentTocTextStyle ?? defaultCurrentTocTextStyle,
super(key: key);