FTappable.static constructor
const
FTappable.static({
- FTappableStyleDelta style = const .context(),
- FFocusedOutlineStyleDelta? focusedOutlineStyle,
- String? semanticsLabel,
- bool excludeSemantics = false,
- bool autofocus = false,
- FocusNode? focusNode,
- ValueChanged<
bool> ? onFocusChange, - ValueChanged<
bool> ? onHoverChange, - FTappableVariantChangeCallback? onVariantChange,
- bool selected = false,
- HitTestBehavior behavior = .translucent,
- GestureTapDownCallback? onPressDown,
- GestureTapCancelCallback? onPressCancel,
- GestureTapMoveCallback? onPressMove,
- GestureTapUpCallback? onPressUp,
- VoidCallback? onPress,
- GestureLongPressDownCallback? onLongPressDown,
- GestureLongPressCancelCallback? onLongPressCancel,
- GestureLongPressStartCallback? onLongPressStart,
- GestureLongPressMoveUpdateCallback? onLongPressMove,
- GestureLongPressEndCallback? onLongPressEnd,
- VoidCallback? onLongPress,
- GestureTapDownCallback? onDoubleTapDown,
- GestureTapCancelCallback? onDoubleTapCancel,
- VoidCallback? onDoubleTap,
- GestureTapDownCallback? onSecondaryPressDown,
- GestureTapCancelCallback? onSecondaryPressCancel,
- GestureTapUpCallback? onSecondaryPressUp,
- VoidCallback? onSecondaryPress,
- GestureLongPressDownCallback? onSecondaryLongPressDown,
- GestureLongPressCancelCallback? onSecondaryLongPressCancel,
- GestureLongPressStartCallback? onSecondaryLongPressStart,
- GestureLongPressMoveUpdateCallback? onSecondaryLongPressMove,
- GestureLongPressEndCallback? onSecondaryLongPressEnd,
- VoidCallback? onSecondaryLongPress,
- Map<
Type, Action< ? actions,Intent> > - ValueWidgetBuilder<
Set< builder = defaultBuilder,FTappableVariant> > - Widget? child,
- Map<
ShortcutActivator, Intent> ? shortcuts, - Key? key,
Creates a FTappable without animation.
Contract
Throws AssertionError if builder and child are both null.
Implementation
const FTappable.static({
this.style = const .context(),
this.focusedOutlineStyle,
this.semanticsLabel,
this.excludeSemantics = false,
this.autofocus = false,
this.focusNode,
this.onFocusChange,
this.onHoverChange,
this.onVariantChange,
this.selected = false,
this.behavior = .translucent,
this.onPressDown,
this.onPressCancel,
this.onPressMove,
this.onPressUp,
this.onPress,
this.onLongPressDown,
this.onLongPressCancel,
this.onLongPressStart,
this.onLongPressMove,
this.onLongPressEnd,
this.onLongPress,
this.onDoubleTapDown,
this.onDoubleTapCancel,
this.onDoubleTap,
this.onSecondaryPressDown,
this.onSecondaryPressCancel,
this.onSecondaryPressUp,
this.onSecondaryPress,
this.onSecondaryLongPressDown,
this.onSecondaryLongPressCancel,
this.onSecondaryLongPressStart,
this.onSecondaryLongPressMove,
this.onSecondaryLongPressEnd,
this.onSecondaryLongPress,
this.actions,
this.builder = defaultBuilder,
this.child,
Map<ShortcutActivator, Intent>? shortcuts,
super.key,
}) : shortcuts = shortcuts ?? (onPress == null ? const {} : const {SingleActivator(.enter): ActivateIntent()}),
assert(builder != defaultBuilder || child != null, 'Either builder or child must be provided');