FlTouchData<R extends BaseTouchResponse> constructor

const FlTouchData<R extends BaseTouchResponse>(
  1. bool enabled,
  2. BaseTouchCallback<R>? touchCallback,
  3. MouseCursorResolver<R>? mouseCursorResolver,
  4. Duration? longPressDuration,
)

You can disable or enable the touch system using enabled flag,

Implementation

const FlTouchData(
  this.enabled,
  this.touchCallback,
  this.mouseCursorResolver,
  this.longPressDuration,
);