@@ -1830,6 +1830,91 @@ class _TransformedPointerScrollEvent extends _TransformedPointerEvent with _Copy
18301830 }
18311831}
18321832
1833+ mixin _CopyPointerScrollInertiaCancelEvent on PointerEvent {
1834+ @override
1835+ PointerScrollInertiaCancelEvent copyWith ({
1836+ Duration ? timeStamp,
1837+ int ? pointer,
1838+ PointerDeviceKind ? kind,
1839+ int ? device,
1840+ Offset ? position,
1841+ Offset ? delta,
1842+ int ? buttons,
1843+ bool ? obscured,
1844+ double ? pressure,
1845+ double ? pressureMin,
1846+ double ? pressureMax,
1847+ double ? distance,
1848+ double ? distanceMax,
1849+ double ? size,
1850+ double ? radiusMajor,
1851+ double ? radiusMinor,
1852+ double ? radiusMin,
1853+ double ? radiusMax,
1854+ double ? orientation,
1855+ double ? tilt,
1856+ bool ? synthesized,
1857+ int ? embedderId,
1858+ }) {
1859+ return PointerScrollInertiaCancelEvent (
1860+ timeStamp: timeStamp ?? this .timeStamp,
1861+ kind: kind ?? this .kind,
1862+ device: device ?? this .device,
1863+ position: position ?? this .position,
1864+ embedderId: embedderId ?? this .embedderId,
1865+ ).transformed (transform);
1866+ }
1867+ }
1868+
1869+ /// The pointer issued a scroll-inertia cancel event.
1870+ ///
1871+ /// Touching the trackpad immediately after a scroll is an example of an event
1872+ /// that would create a [PointerScrollInertiaCancelEvent] .
1873+ ///
1874+ /// See also:
1875+ ///
1876+ /// * [Listener.onPointerSignal] , which allows callers to be notified of these
1877+ /// events in a widget tree.
1878+ /// * [PointerSignalResolver] , which provides an opt-in mechanism whereby
1879+ /// participating agents may disambiguate an event's target.
1880+ class PointerScrollInertiaCancelEvent extends PointerSignalEvent with _PointerEventDescription , _CopyPointerScrollInertiaCancelEvent {
1881+ /// Creates a pointer scroll-inertia cancel event.
1882+ ///
1883+ /// All of the arguments must be non-null.
1884+ const PointerScrollInertiaCancelEvent ({
1885+ super .timeStamp,
1886+ super .kind,
1887+ super .device,
1888+ super .position,
1889+ super .embedderId,
1890+ }) : assert (timeStamp != null ),
1891+ assert (kind != null ),
1892+ assert (device != null ),
1893+ assert (position != null );
1894+
1895+ @override
1896+ PointerScrollInertiaCancelEvent transformed (Matrix4 ? transform) {
1897+ if (transform == null || transform == this .transform) {
1898+ return this ;
1899+ }
1900+ return _TransformedPointerScrollInertiaCancelEvent (original as PointerScrollInertiaCancelEvent ? ?? this , transform);
1901+ }
1902+ }
1903+
1904+ class _TransformedPointerScrollInertiaCancelEvent extends _TransformedPointerEvent with _CopyPointerScrollInertiaCancelEvent implements PointerScrollInertiaCancelEvent {
1905+ _TransformedPointerScrollInertiaCancelEvent (this .original, this .transform)
1906+ : assert (original != null ), assert (transform != null );
1907+
1908+ @override
1909+ final PointerScrollInertiaCancelEvent original;
1910+
1911+ @override
1912+ final Matrix4 transform;
1913+
1914+ @override
1915+ PointerScrollInertiaCancelEvent transformed (Matrix4 ? transform) => original.transformed (transform);
1916+ }
1917+
18331918mixin _CopyPointerPanZoomStartEvent on PointerEvent {
18341919 @override
18351920 PointerPanZoomStartEvent copyWith ({
0 commit comments