FTappable constructor

const FTappable({
  1. FTappableStyle style(
    1. FTappableStyle style
    )?,
  2. FFocusedOutlineStyle focusedOutlineStyle(
    1. FFocusedOutlineStyle style
    )?,
  3. String? semanticsLabel,
  4. bool excludeSemantics,
  5. bool autofocus,
  6. FocusNode? focusNode,
  7. ValueChanged<bool>? onFocusChange,
  8. ValueChanged<bool>? onHoverChange,
  9. ValueChanged<FWidgetStatesDelta>? onStateChange,
  10. bool selected,
  11. HitTestBehavior behavior,
  12. VoidCallback? onPress,
  13. VoidCallback? onLongPress,
  14. VoidCallback? onSecondaryPress,
  15. VoidCallback? onSecondaryLongPress,
  16. Map<ShortcutActivator, Intent>? shortcuts,
  17. Map<Type, Action<Intent>>? actions,
  18. ValueWidgetBuilder<Set<WidgetState>> builder,
  19. Widget? child,
  20. Key? key,
})

Creates an FTappable.

Contract

Throws AssertionError if builder and child are both null.

Implementation

const factory FTappable({
  FTappableStyle Function(FTappableStyle style)? style,
  FFocusedOutlineStyle Function(FFocusedOutlineStyle style)? focusedOutlineStyle,
  String? semanticsLabel,
  bool excludeSemantics,
  bool autofocus,
  FocusNode? focusNode,
  ValueChanged<bool>? onFocusChange,
  ValueChanged<bool>? onHoverChange,
  ValueChanged<FWidgetStatesDelta>? onStateChange,
  bool selected,
  HitTestBehavior behavior,
  VoidCallback? onPress,
  VoidCallback? onLongPress,
  VoidCallback? onSecondaryPress,
  VoidCallback? onSecondaryLongPress,
  Map<ShortcutActivator, Intent>? shortcuts,
  Map<Type, Action<Intent>>? actions,
  ValueWidgetBuilder<Set<WidgetState>> builder,
  Widget? child,
  Key? key,
}) = AnimatedTappable;