StrapiObjectListener class

static class which manages all listeners of any strapi collection object

Constructors

StrapiObjectListener({required String id, required dynamic listener(Map<String, dynamic>, bool), required Map<String, dynamic> initailData})
listen to a Strapi collection object, listening for now means any new instance of the collection object with id is received will be delivered to the listner, no server changes are are streamed as of now
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
call when you no more need to listen and free up resource
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stopListening() → void
call when you no more need to listen and free up resource
toString() String
A string representation of this object.
inherited

Operators

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