FTappable.static constructor

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

Creates a FTappable without animation.

Contract

Throws AssertionError if builder and child are both null.

Implementation

const FTappable.static({
  this.style,
  this.focusedOutlineStyle,
  this.semanticsLabel,
  this.excludeSemantics = false,
  this.autofocus = false,
  this.focusNode,
  this.onFocusChange,
  this.onHoverChange,
  this.onStateChange,
  this.selected = false,
  this.behavior = HitTestBehavior.translucent,
  this.onPress,
  this.onLongPress,
  this.builder = _builder,
  this.child,
  super.key,
}) : assert(builder != _builder || child != null, 'Either builder or child must be provided.');