NativeTapInput typedef

NativeTapInput = ({int? index, bool logical, String? text, int? timeoutSeconds, double? x, double? y})

Input parameters for nativeTap.

Exactly one target: x and y together, or text.

  • text: label, content description or resource id of a native element on Android; accessibility label or identifier on the iOS simulator. index picks among several matches (0-based). timeoutSeconds is how long to keep looking for a match (default 5).
  • logical: x/y are Flutter logical pixels. On Android they are multiplied by the device pixel ratio; on the iOS simulator they are already points, so it changes nothing.

Implementation

typedef NativeTapInput = ({
  double? x,
  double? y,
  String? text,
  int? index,
  int? timeoutSeconds,
  bool logical,
});