FTappable constructor

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

Creates an FTappable.

Contract

Throws AssertionError if builder and child are both null.

Implementation

const factory FTappable({
  FTappableStyle? style,
  FFocusedOutlineStyle? focusedOutlineStyle,
  String? semanticsLabel,
  bool excludeSemantics,
  bool autofocus,
  FocusNode? focusNode,
  ValueChanged<bool>? onFocusChange,
  ValueChanged<bool>? onHoverChange,
  ValueChanged<Set<WidgetState>>? onStateChange,
  bool selected,
  HitTestBehavior behavior,
  VoidCallback? onPress,
  VoidCallback? onLongPress,
  ValueWidgetBuilder<Set<WidgetState>> builder,
  Widget? child,
  Key? key,
}) = AnimatedTappable;