raw static method
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.
This function is a shorthand for FItem.raw.
Implementation
static 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<Intent>>? actions,
Widget? prefix,
Key? key,
}) => .raw(
variant: variant,
style: style,
enabled: enabled,
selected: selected,
semanticsLabel: semanticsLabel,
autofocus: autofocus,
focusNode: focusNode,
onFocusChange: onFocusChange,
onHoverChange: onHoverChange,
onVariantChange: onVariantChange,
onPress: onPress,
onLongPress: onLongPress,
onDoubleTap: onDoubleTap,
onSecondaryPress: onSecondaryPress,
onSecondaryLongPress: onSecondaryLongPress,
shortcuts: shortcuts,
actions: actions,
prefix: prefix,
key: key,
child: child,
);