Unverified Commit ae4fb0ca authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

fix typo and reflow (#140925)

Fixes "differenet" => "different" and reflows the doc to 80 char line length.
parent 253dc6f8
...@@ -61,21 +61,23 @@ class PointerSignalResolver { ...@@ -61,21 +61,23 @@ class PointerSignalResolver {
/// Registers interest in handling [event]. /// Registers interest in handling [event].
/// ///
/// This method may be called multiple times (typically from different parts of the /// This method may be called multiple times (typically from different parts
/// widget hierarchy) for the same `event`, with differenet `callback`s, as the event /// of the widget hierarchy) for the same `event`, with different `callback`s,
/// is being dispatched across the tree. Once the dispatching is complete, the /// as the event is being dispatched across the tree. Once the dispatching is
/// [GestureBinding] calls [resolve], and the first registered callback is called. /// complete, the [GestureBinding] calls [resolve], and the first registered
/// callback is called.
/// ///
/// The `callback` is invoked with one argument, the `event`. /// The `callback` is invoked with one argument, the `event`.
/// ///
/// Once the [register] method has been called with a particular `event`, it must /// Once the [register] method has been called with a particular `event`, it
/// not be called for other `event`s until after [resolve] has been called. Only one /// must not be called for other `event`s until after [resolve] has been
/// event disambiguation can be in flight at a time. In normal use this is achieved /// called. Only one event disambiguation can be in flight at a time. In
/// by only registering callbacks for an event as it is actively being dispatched /// normal use this is achieved by only registering callbacks for an event as
/// (for example, in [Listener.onPointerSignal]). /// it is actively being dispatched (for example, in
/// [Listener.onPointerSignal]).
/// ///
/// See the documentation for the [PointerSignalResolver] class for an example of /// See the documentation for the [PointerSignalResolver] class for an example
/// using this method. /// of using this method.
void register(PointerSignalEvent event, PointerSignalResolvedCallback callback) { void register(PointerSignalEvent event, PointerSignalResolvedCallback callback) {
assert(_currentEvent == null || _isSameEvent(_currentEvent!, event)); assert(_currentEvent == null || _isSameEvent(_currentEvent!, event));
if (_firstRegisteredCallback != null) { if (_firstRegisteredCallback != null) {
......
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