FTile.raw constructor

FTile.raw({
  1. required Widget child,
  2. FItemVariant variant = .primary,
  3. FItemStyleDelta style = const .context(),
  4. bool? enabled,
  5. bool selected = false,
  6. String? semanticsLabel,
  7. bool autofocus = false,
  8. FocusNode? focusNode,
  9. ValueChanged<bool>? onFocusChange,
  10. ValueChanged<bool>? onHoverChange,
  11. FTappableVariantChangeCallback? onVariantChange,
  12. VoidCallback? onPress,
  13. VoidCallback? onLongPress,
  14. VoidCallback? onDoubleTap,
  15. VoidCallback? onSecondaryPress,
  16. VoidCallback? onSecondaryLongPress,
  17. Map<ShortcutActivator, Intent>? shortcuts,
  18. Map<Type, Action<Intent>>? actions,
  19. Widget? prefix,
  20. Key? key,
})

Creates a FTile without custom layout behavior.

Assuming LTR locale:

----------------------------------------
| [prefix] [child]                     |
----------------------------------------

The order is reversed for RTL locales.

Implementation

FTile.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,
}) : _child = FItem.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,
       child: child,
     );