onLongPress method
Widget
onLongPress(
- VoidCallback? onLongPress,
- Key? key, {
- HitTestBehavior hitTestBehavior = HitTestBehavior.deferToChild,
Implementation
Widget onLongPress(VoidCallback? onLongPress, Key? key,
{HitTestBehavior hitTestBehavior = HitTestBehavior.deferToChild}) {
return MouseRegion(
key: key,
cursor: SystemMouseCursors.click,
child: GestureDetector(
behavior: hitTestBehavior,
onLongPress: onLongPress,
child: this,
),
);
}