$new static method
Create a new $GestureDetector from args
Implementation
static $Value? $new(Runtime runtime, $Value? target, List<$Value?> args) {
return $GestureDetector.wrap(GestureDetector(
key: args[0]?.$value,
child: args[1]?.$value,
onTapDown: args[2] == null
? null
: (details) => (args[2] as EvalCallable)
.call(runtime, null, [$TapDownDetails.wrap(details)]),
onTapUp: args[3] == null
? null
: (details) => (args[3] as EvalCallable)
.call(runtime, null, [$TapUpDetails.wrap(details)]),
onTap: args[4] == null
? null
: () => (args[4] as EvalCallable).call(runtime, null, []),
onTapCancel: args[5] == null
? null
: () => (args[5] as EvalCallable).call(runtime, null, []),
onSecondaryTap: args[6] == null
? null
: () => (args[6] as EvalCallable).call(runtime, null, []),
onSecondaryTapDown: args[7] == null
? null
: (details) => (args[7] as EvalCallable)
.call(runtime, null, [$TapDownDetails.wrap(details)]),
onSecondaryTapUp: args[8] == null
? null
: (details) => (args[8] as EvalCallable)
.call(runtime, null, [$TapUpDetails.wrap(details)]),
onSecondaryTapCancel: args[9] == null
? null
: () => (args[9] as EvalCallable).call(runtime, null, []),
onTertiaryTapDown: args[10] == null
? null
: (details) => (args[10] as EvalCallable)
.call(runtime, null, [$TapDownDetails.wrap(details)]),
onTertiaryTapUp: args[11] == null
? null
: (details) => (args[11] as EvalCallable)
.call(runtime, null, [$TapUpDetails.wrap(details)]),
onTertiaryTapCancel: args[12] == null
? null
: () => (args[12] as EvalCallable).call(runtime, null, []),
onDoubleTapDown: args[13] == null
? null
: (details) => (args[13] as EvalCallable)
.call(runtime, null, [$TapDownDetails.wrap(details)]),
onDoubleTap: args[14] == null
? null
: () => (args[14] as EvalCallable).call(runtime, null, []),
onDoubleTapCancel: args[15] == null
? null
: () => (args[15] as EvalCallable).call(runtime, null, []),
onLongPressDown: args[16] == null
? null
: (details) => (args[16] as EvalCallable)
.call(runtime, null, [$LongPressDownDetails.wrap(details)]),
onLongPressCancel: args[17] == null
? null
: () => (args[17] as EvalCallable).call(runtime, null, []),
onLongPress: args[18] == null
? null
: () => (args[18] as EvalCallable).call(runtime, null, []),
onLongPressStart: args[19] == null
? null
: (details) => (args[19] as EvalCallable)
.call(runtime, null, [$LongPressStartDetails.wrap(details)]),
onLongPressMoveUpdate: args[20] == null
? null
: (details) => (args[20] as EvalCallable)
.call(runtime, null, [$LongPressMoveUpdateDetails.wrap(details)]),
onLongPressUp: args[21] == null
? null
: () => (args[21] as EvalCallable).call(runtime, null, []),
onLongPressEnd: args[22] == null
? null
: (details) => (args[22] as EvalCallable)
.call(runtime, null, [$LongPressEndDetails.wrap(details)]),
onSecondaryLongPressDown: args[23] == null
? null
: (details) => (args[23] as EvalCallable)
.call(runtime, null, [$LongPressDownDetails.wrap(details)]),
onSecondaryLongPressCancel: args[24] == null
? null
: () => (args[24] as EvalCallable).call(runtime, null, []),
onSecondaryLongPress: args[25] == null
? null
: () => (args[25] as EvalCallable).call(runtime, null, []),
onSecondaryLongPressStart: args[26] == null
? null
: (details) => (args[26] as EvalCallable)
.call(runtime, null, [$LongPressStartDetails.wrap(details)]),
onSecondaryLongPressMoveUpdate: args[27] == null
? null
: (details) => (args[27] as EvalCallable)
.call(runtime, null, [$LongPressMoveUpdateDetails.wrap(details)]),
onSecondaryLongPressUp: args[28] == null
? null
: () => (args[28] as EvalCallable).call(runtime, null, []),
onSecondaryLongPressEnd: args[29] == null
? null
: (details) => (args[29] as EvalCallable)
.call(runtime, null, [$LongPressEndDetails.wrap(details)]),
onTertiaryLongPressDown: args[30] == null
? null
: (details) => (args[30] as EvalCallable)
.call(runtime, null, [$LongPressDownDetails.wrap(details)]),
onTertiaryLongPressCancel: args[31] == null
? null
: () => (args[31] as EvalCallable).call(runtime, null, []),
onTertiaryLongPress: args[32] == null
? null
: () => (args[32] as EvalCallable).call(runtime, null, []),
onTertiaryLongPressStart: args[33] == null
? null
: (details) => (args[33] as EvalCallable)
.call(runtime, null, [$LongPressStartDetails.wrap(details)]),
onTertiaryLongPressMoveUpdate: args[34] == null
? null
: (details) => (args[34] as EvalCallable)
.call(runtime, null, [$LongPressMoveUpdateDetails.wrap(details)]),
onTertiaryLongPressUp: args[35] == null
? null
: () => (args[35] as EvalCallable).call(runtime, null, []),
onTertiaryLongPressEnd: args[36] == null
? null
: (details) => (args[36] as EvalCallable)
.call(runtime, null, [$LongPressEndDetails.wrap(details)]),
onVerticalDragDown: args[37] == null
? null
: (details) => (args[37] as EvalCallable)
.call(runtime, null, [$DragDownDetails.wrap(details)]),
onVerticalDragStart: args[38] == null
? null
: (details) => (args[38] as EvalCallable)
.call(runtime, null, [$DragStartDetails.wrap(details)]),
onVerticalDragUpdate: args[39] == null
? null
: (details) => (args[39] as EvalCallable)
.call(runtime, null, [$DragUpdateDetails.wrap(details)]),
onVerticalDragEnd: args[40] == null
? null
: (details) => (args[40] as EvalCallable)
.call(runtime, null, [$DragEndDetails.wrap(details)]),
));
}