M3ESplitButton<T>.outlined constructor
const
M3ESplitButton<T>.outlined ({
- Key? key,
- required List<
M3ESplitButtonItem< ? items,T> > - ValueChanged<
T> ? onSelected, - VoidCallback? onPressed,
- String? label,
- IconData? leadingIcon,
- M3EButtonSize size = M3EButtonSize.sm,
- M3EButtonShape shape = M3EButtonShape.round,
- M3ESplitButtonTrailingAlignment trailingAlignment = M3ESplitButtonTrailingAlignment.opticalCenter,
- String? leadingTooltip,
- String? trailingTooltip,
- bool enabled = true,
- M3ESplitButtonDecoration? decoration,
- MouseCursor? mouseCursor,
- WidgetStatesController? statesController,
- FocusNode? focusNode,
- bool autofocus = false,
- ValueChanged<
bool> ? onFocusChange, - T? selectedValue,
- void onMultiSelected(
- Set<
T>
- Set<
- VoidCallback? onLongPress,
- ValueChanged<
bool> ? onHover, - bool enableFeedback = _kDefaultEnableFeedback,
- InteractiveInkFeatureFactory? splashFactory,
An outlined split button (medium emphasis with a border).
Implementation
const M3ESplitButton.outlined({
super.key,
required this.items,
this.onSelected,
this.onPressed,
this.label,
this.leadingIcon,
this.size = M3EButtonSize.sm,
this.shape = M3EButtonShape.round,
this.trailingAlignment = M3ESplitButtonTrailingAlignment.opticalCenter,
this.leadingTooltip,
this.trailingTooltip,
this.enabled = true,
this.menuBuilder,
this.decoration,
this.mouseCursor,
this.statesController,
this.focusNode,
this.autofocus = false,
this.onFocusChange,
this.selectedValue,
this.onMultiSelected,
this.onLongPress,
this.onHover,
this.enableFeedback = _kDefaultEnableFeedback,
this.splashFactory,
}) : style = M3EButtonStyle.outlined,
assert(
items != null || menuBuilder != null,
'Provide either `items` or `menuBuilder`.',
);