longPress method Null safety

Future<void> longPress (
  1. Finder finder,
  2. {int pointer,
  3. int buttons: kPrimaryButton}

Dispatch a pointer down / pointer up sequence (with a delay of kLongPressTimeout + kPressTimeout between the two events) at the center of the given widget, assuming it is exposed.

If the center of the widget is not exposed, this might send events to another object.


Future<void> longPress(Finder finder, {int pointer, int buttons = kPrimaryButton}) {
  return longPressAt(getCenter(finder), pointer: pointer, buttons: buttons);