toWidget method

  1. @override
GestureDetector toWidget(
  1. AnyWidgetContext context
)
override

Implementation

@override
GestureDetector toWidget(AnyWidgetContext context) {
  return GestureDetector(
    key: key?.toFlutter(context),
    child: child?.toWidget(context),
    behavior: behavior?.toFlutter(context),
    excludeFromSemantics: excludeFromSemantics ?? false,
    onTap: actionsCallback(onTap, context),
    onSecondaryTap: actionsCallback(onSecondaryTap, context),
    onDoubleTap: actionsCallback(onDoubleTap, context),
    onLongPress: actionsCallback(onLongPress, context),
    onSecondaryLongPress: actionsCallback(onSecondaryLongPress, context),
    onTertiaryLongPress: actionsCallback(onTertiaryLongPress, context),
  );
}