SelectedButton constructor
const
SelectedButton({
- Key? key,
- required bool value,
- ValueChanged<
bool> ? onChanged, - required Widget child,
- bool? enabled,
- AbstractButtonStyle style = const ButtonStyle.ghost(),
- AbstractButtonStyle selectedStyle = const ButtonStyle.secondary(),
- AlignmentGeometry? alignment,
- AlignmentGeometry? marginAlignment,
- bool disableTransition = false,
- ValueChanged<
bool> ? onHover, - ValueChanged<
bool> ? onFocus, - bool? enableFeedback,
- GestureTapDownCallback? onTapDown,
- GestureTapUpCallback? onTapUp,
- GestureTapCancelCallback? onTapCancel,
- GestureTapDownCallback? onSecondaryTapDown,
- GestureTapUpCallback? onSecondaryTapUp,
- GestureTapCancelCallback? onSecondaryTapCancel,
- GestureTapDownCallback? onTertiaryTapDown,
- GestureTapUpCallback? onTertiaryTapUp,
- GestureTapCancelCallback? onTertiaryTapCancel,
- GestureLongPressStartCallback? onLongPressStart,
- GestureLongPressUpCallback? onLongPressUp,
- GestureLongPressMoveUpdateCallback? onLongPressMoveUpdate,
- GestureLongPressEndCallback? onLongPressEnd,
- GestureLongPressUpCallback? onSecondaryLongPress,
- GestureLongPressUpCallback? onTertiaryLongPress,
- bool disableHoverEffect = false,
- WidgetStatesController? statesController,
- VoidCallback? onPressed,
Implementation
const SelectedButton({
super.key,
required this.value,
this.onChanged,
required this.child,
this.enabled,
this.style = const ButtonStyle.ghost(),
this.selectedStyle = const ButtonStyle.secondary(),
this.alignment,
this.marginAlignment,
this.disableTransition = false,
this.onHover,
this.onFocus,
this.enableFeedback,
this.onTapDown,
this.onTapUp,
this.onTapCancel,
this.onSecondaryTapDown,
this.onSecondaryTapUp,
this.onSecondaryTapCancel,
this.onTertiaryTapDown,
this.onTertiaryTapUp,
this.onTertiaryTapCancel,
this.onLongPressStart,
this.onLongPressUp,
this.onLongPressMoveUpdate,
this.onLongPressEnd,
this.onSecondaryLongPress,
this.onTertiaryLongPress,
this.disableHoverEffect = false,
this.statesController,
this.onPressed,
});