GrockDirectSelectionMenu constructor
const
GrockDirectSelectionMenu({
- Key? key,
- Widget? child,
- int? value,
- dynamic onChanged(
- int index
- required List<
Widget> items, - IconData icon = Icons.menu,
- Color? backgroundColor = Colors.black,
- double backgroundColorOpacity = 0.4,
- bool isItemCenter = true,
- String? hintText,
- Color? iconColor,
- double? iconSize,
- TextStyle? valueStyle,
- Alignment? alignment = Alignment.bottomCenter,
- EdgeInsetsGeometry? padding,
- Color? color,
- Widget? centerItem,
- Decoration? decoration,
- Decoration? foregroundDecoration,
- double? width,
- double? height,
- BoxConstraints? constraints,
- EdgeInsetsGeometry? margin,
- double itemExtent = 50.0,
- double centerItemOpacity = 0.3,
- GrockDirectionPressStyle pressStyle = GrockDirectionPressStyle.swipe,
Implementation
const GrockDirectSelectionMenu({
super.key,
this.child,
this.value,
this.onChanged,
required this.items,
this.icon = Icons.menu,
this.backgroundColor = Colors.black,
this.backgroundColorOpacity = 0.4,
this.isItemCenter = true,
this.hintText,
this.iconColor,
this.iconSize,
this.valueStyle,
this.alignment = Alignment.bottomCenter,
this.padding,
this.color,
this.centerItem,
this.decoration,
this.foregroundDecoration,
this.width,
this.height,
this.constraints,
this.margin,
this.itemExtent = 50.0,
this.centerItemOpacity = 0.3,
this.pressStyle = GrockDirectionPressStyle.swipe,
}) : assert(backgroundColorOpacity >= 0 && backgroundColorOpacity <= 1,
"The backgroundColorOpacity value must be at least 0, and at most 1 (backgroundColorOpacity değeri en az 0, en fazla 1 olmalıdır)"),
assert(centerItemOpacity >= 0 && centerItemOpacity <= 1,
"The centerItemOpacity value must be at least 0, and at most 1 (centerItemOpacity değeri en az 0, en fazla 1 olmalıdır)");