DistinctEventListener<S> class

A decorator for an EventListener that skips events if they are equal to the previous event.

The type parameter S is the type of the decorated EventListener.

Constructors

DistinctEventListener(EventListener<S> decorated)

Properties

decorated EventListener<S>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(StoreSnapshot<S> data, Event<S> event, UniqueKey key) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

decorate<S>(EventListener<S>? decorated) EventListener<S>?