M3ESplitButton<T>.filled constructor

const M3ESplitButton<T>.filled({
  1. Key? key,
  2. required List<M3ESplitButtonItem<T>>? items,
  3. ValueChanged<T>? onSelected,
  4. VoidCallback? onPressed,
  5. String? label,
  6. IconData? leadingIcon,
  7. M3EButtonSize size = M3EButtonSize.sm,
  8. M3EButtonShape shape = M3EButtonShape.round,
  9. M3ESplitButtonTrailingAlignment trailingAlignment = M3ESplitButtonTrailingAlignment.opticalCenter,
  10. String? leadingTooltip,
  11. String? trailingTooltip,
  12. bool enabled = true,
  13. List<PopupMenuEntry<T>> menuBuilder(
    1. BuildContext
    )?,
  14. List<M3EMenuNode> m3eMenuBuilder(
    1. BuildContext
    )?,
  15. M3ESplitButtonDecoration? decoration,
  16. MouseCursor? mouseCursor,
  17. WidgetStatesController? statesController,
  18. FocusNode? focusNode,
  19. bool autofocus = false,
  20. ValueChanged<bool>? onFocusChange,
  21. T? selectedValue,
  22. void onMultiSelected(
    1. Set<T>
    )?,
  23. VoidCallback? onLongPress,
  24. ValueChanged<bool>? onHover,
  25. bool enableFeedback = _kDefaultEnableFeedback,
  26. InteractiveInkFeatureFactory? splashFactory,
})

A filled split button (highest emphasis).

Implementation

const M3ESplitButton.filled({
  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.m3eMenuBuilder,
  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.filled,
     assert(
       items != null || menuBuilder != null || m3eMenuBuilder != null,
       'Provide either `items`, `menuBuilder`, or `m3eMenuBuilder`.',
     );