TocWidget constructor

const TocWidget({
  1. Key? key,
  2. required TocController controller,
  3. ScrollPhysics? physics,
  4. bool shrinkWrap = false,
  5. EdgeInsetsGeometry? padding,
  6. TocItemBuilder? itemBuilder,
  7. TextStyle? tocTextStyle,
  8. 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);