FTappable constructor
const
FTappable({
- FFocusedOutlineStyle? focusedOutlineStyle,
- String? semanticLabel,
- bool semanticSelected = false,
- bool excludeSemantics = false,
- bool autofocus = false,
- FocusNode? focusNode,
- ValueChanged<
bool> ? onFocusChange, - Duration touchHoverEnterDuration = const Duration(milliseconds: 200),
- Duration touchHoverExitDuration = Duration.zero,
- HitTestBehavior behavior = HitTestBehavior.translucent,
- VoidCallback? onPress,
- VoidCallback? onLongPress,
- Widget? child,
- ValueWidgetBuilder<
FTappableData> ? builder, - Key? key,
Implementation
const FTappable({
this.focusedOutlineStyle,
this.semanticLabel,
this.semanticSelected = false,
this.excludeSemantics = false,
this.autofocus = false,
this.focusNode,
this.onFocusChange,
this.touchHoverEnterDuration = const Duration(milliseconds: 200),
this.touchHoverExitDuration = Duration.zero,
this.behavior = HitTestBehavior.translucent,
this.onPress,
this.onLongPress,
this.child,
ValueWidgetBuilder<FTappableData>? builder,
super.key,
}) : assert(builder != null || child != null, 'Either builder or child must be provided.'),
builder = builder ?? _builder;