FSelectMenuTile<T> constructor
FSelectMenuTile<T> ({
- required Widget title,
- FMultiValueControl<
T> ? selectControl, - FPopoverControl popoverControl = const .managed(),
- ScrollController? scrollController,
- FSelectMenuTileStyle style(
- FSelectMenuTileStyle style
- double? cacheExtent,
- double maxHeight = .infinity,
- DragStartBehavior dragStartBehavior = .start,
- ScrollPhysics physics = const ClampingScrollPhysics(),
- FItemDivider divider = .full,
- AlignmentGeometry tileAnchor = .bottomRight,
- bool autoHide = true,
- Widget? label,
- Widget? description,
- bool autofocus = false,
- String? semanticsLabel,
- Widget? prefix,
- Widget? subtitle,
- ValueWidgetBuilder<
Set< detailsBuilder = defaultSelectMenuTileBuilder,T> > - Widget? details,
- Widget? suffix,
- Map<
ShortcutActivator, Intent> ? shortcuts, - Map<
Type, Action< ? actions,Intent> > - Widget errorBuilder(
- BuildContext context,
- String message
- FormFieldSetter<
Set< ? onSaved,T> > - VoidCallback? onReset,
- FormFieldValidator<
Set< ? validator,T> > - String? forceErrorText,
- bool enabled = true,
- AutovalidateMode autovalidateMode = .disabled,
- Key? key,
Creates a FSelectMenuTile that eagerly builds the menu.
Implementation
FSelectMenuTile({
required this.title,
required List<FSelectTile<T>> menu,
this.selectControl,
this.popoverControl = const .managed(),
this.scrollController,
this.style,
this.cacheExtent,
this.maxHeight = .infinity,
this.dragStartBehavior = .start,
this.physics = const ClampingScrollPhysics(),
this.divider = .full,
this.menuAnchor = .topRight,
this.tileAnchor = .bottomRight,
this.menuSpacing = const .spacing(4),
this.menuOverflow = .flip,
this.menuOffset = .zero,
this.menuHideRegion = .excludeChild,
this.menuOnTapHide,
this.menuGroupId,
this.autoHide = true,
this.label,
this.description,
this.autofocus = false,
this.menuFocusNode,
this.menuOnFocusChange,
this.menuTraversalEdgeBehavior,
this.menuBarrierSemanticsLabel,
this.menuBarrierSemanticsDismissible = true,
this.semanticsLabel,
this.prefix,
this.subtitle,
this.detailsBuilder = defaultSelectMenuTileBuilder,
this.details,
this.suffix,
this.shortcuts,
this.actions,
this.errorBuilder = FFormFieldProperties.defaultErrorBuilder,
this.onSaved,
this.onReset,
this.validator,
this.forceErrorText,
this.enabled = true,
this.autovalidateMode = .disabled,
super.key,
}) : _menu = menu,
_menuBuilder = null,
_count = null;