Unverified Commit 1a617436 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Fix PointerEventConverter doc (#128452)

Follow-up to https://github.com/flutter/flutter/pull/128287.
parent 11c8a626
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:async'; import 'dart:async';
import 'dart:collection'; import 'dart:collection';
import 'dart:ui' as ui show PointerDataPacket; import 'dart:ui' as ui show PointerDataPacket;
......
...@@ -53,10 +53,10 @@ abstract final class PointerEventConverter { ...@@ -53,10 +53,10 @@ abstract final class PointerEventConverter {
/// Expand the given packet of pointer data into a sequence of framework /// Expand the given packet of pointer data into a sequence of framework
/// pointer events. /// pointer events.
/// ///
/// The `devicePixelRatio` argument (usually given the value from /// The `devicePixelRatioForView` is used to obtain the device pixel ratio for
/// [dart:ui.FlutterView.devicePixelRatio]) is used to convert the incoming data /// the view a particular event occurred in to convert its data from physical
/// from physical coordinates to logical pixels. See the discussion at /// coordinates to logical pixels. See the discussion at [PointerEvent] for
/// [PointerEvent] for more details on the [PointerEvent] coordinate space. /// more details on the [PointerEvent] coordinate space.
static Iterable<PointerEvent> expand(Iterable<ui.PointerData> data, DevicePixelRatioGetter devicePixelRatioForView) { static Iterable<PointerEvent> expand(Iterable<ui.PointerData> data, DevicePixelRatioGetter devicePixelRatioForView) {
return data return data
.where((ui.PointerData datum) => datum.signalKind != ui.PointerSignalKind.unknown) .where((ui.PointerData datum) => datum.signalKind != ui.PointerSignalKind.unknown)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment