EventSubscription class Null safety

EventSubscription methods can be used to manipulate subscriptions, however Teemo provides all the necessary abstraction.


EventSubscription([Handler _defaultBehavior = EventSubscription._defaultBehaviorImpl])
Default constructor uses the private defaultbehavior handler for all unhandled endpoints, which is to print all JSON consumed. Provide a Handler argument to override the subscription's default behavior on all incoming messages.


hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


filterEndpoint(String endpoint, {Handler behavior = EventSubscription._defaultBehaviorImpl}) → void
filters an endpoint to be consumed with special behavior. if endpoint ends in '*', all URIs starting with endpoint are consumed by this filter.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
tasks(JsonData data) List<Future<void>>
A mostly private method for Teemo to gather all handlers which match the incoming data from the LCU server.
toString() String
A string representation of this object.
unfilterEndpoint(String endpoint) → void
unfilters an endpoint. To unfilter an endpoint which ended in '', provide the '' here too.


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