SFSelectMain constructor

SFSelectMain({
  1. Key? key,
  2. required List<SFSelectMenu> menus,
  3. double? width,
  4. double? height,
  5. Color? menuBackgroundColor,
  6. Color? focusedBackgroundColor,
  7. Color? outlineColor,
  8. double radius = 10,
  9. double? outlineWidth,
  10. Axis direction = Axis.vertical,
  11. dynamic onTap(
    1. int
    )?,
  12. EdgeInsetsGeometry? padding,
  13. EdgeInsetsGeometry? subPadding,
  14. ScrollPhysics? physics,
  15. double spacing = 10,
  16. int? initialIndex,
  17. Duration? downDuration,
  18. Color? backgroundColor,
  19. String? selectedMenuText,
  20. double menuHeight = 40,
})

Implementation

SFSelectMain({
  Key? key,
  required this.menus,
  this.width,
  this.height,
  this.menuBackgroundColor,
  this.focusedBackgroundColor,
  this.outlineColor,
  this.radius = 10,
  this.outlineWidth,
  this.direction = Axis.vertical,
  this.onTap,
  this.padding,
  this.subPadding,
  this.physics,
  this.spacing = 10,
  this.initialIndex,
  this.downDuration,
  this.backgroundColor,
  this.selectedMenuText,
  this.menuHeight = 40,
}) : super(key: key) {
  _checkForDuplicates();
}