FItem.raw constructor
FItem.raw({
- required Widget child,
- FItemVariant variant = .primary,
- FItemStyleDelta style = const .context(),
- bool? enabled,
- bool selected = false,
- String? semanticsLabel,
- bool autofocus = false,
- FocusNode? focusNode,
- ValueChanged<
bool> ? onFocusChange, - ValueChanged<
bool> ? onHoverChange, - FTappableVariantChangeCallback? onVariantChange,
- VoidCallback? onPress,
- VoidCallback? onLongPress,
- VoidCallback? onDoubleTap,
- VoidCallback? onSecondaryPress,
- VoidCallback? onSecondaryLongPress,
- Map<
ShortcutActivator, Intent> ? shortcuts, - Map<
Type, Action< ? actions,Intent> > - Widget? prefix,
- Key? key,
Creates a FItem without custom layout behavior.
Assuming LTR locale:
----------------------------------------
| [prefix] [child] |
----------------------------------------
The order is reversed for RTL locales.
Implementation
FItem.raw({
required Widget child,
this.variant = .primary,
this.style = const .context(),
this.enabled,
this.selected = false,
this.semanticsLabel,
this.autofocus = false,
this.focusNode,
this.onFocusChange,
this.onHoverChange,
this.onVariantChange,
this.onPress,
this.onLongPress,
this.onDoubleTap,
this.onSecondaryPress,
this.onSecondaryLongPress,
this.shortcuts,
this.actions,
Widget? prefix,
super.key,
}) : _builder = ((context, style, top, bottom, variants, color, background, width, divider) => RawItemContent(
style: style.rawItemContentStyle,
margin: style.margin,
top: top,
bottom: bottom,
variants: variants,
dividerForeground: color,
dividerBackground: background,
dividerWidth: width,
dividerType: divider,
prefix: prefix,
child: child,
));