EventService class
<p>EventService class provides different services in the context of Event.</p> <p>Services include:</p> <ul> <li><code>setOrgStreamSubscription</code> : to set organization stream subscription for user.</li> <li><code>getEvents</code> : to get all events of the organization.</li> <li><code>fetchRegistrantsByEvent</code> : to fetch all registrants of an event.</li> <li><code>registerForAnEvent</code> : to register for an event.</li> <li><code>deleteEvent</code> : to delete an event.</li> <li><code>editEvent</code> : to edit the event.</li> <li><code>dispose</code> : to cancel the stream subscription of an organization.</li> </ul>
Constructors
EventService ()
Properties
eventStream → Stream<Event>
The event stream.
<span class="feature">read-only</span>
hashCode → int
The hash code for this object.
<span class="feature">read-only</span><span class="feature">inherited</span>
runtimeType → Type
A representation of the runtime type of the object.
<span class="feature">read-only</span><span class="feature">inherited</span>
Methods
deleteEvent(String eventId) Future
This function is used to delete the event.
dispose() void
This function is used to cancel the stream subscription of an organization.
editEvent({required String eventId, required Map<String, dynamic> variables}) Future<void>
This function is used to edit an event.
fetchRegistrantsByEvent(String eventId) Future
This function is used to fetch all registrants of an event.
getEvents() Future<void>
This function is used to fetch all the events of an organization.
noSuchMethod(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed.
<span class="feature">inherited</span>
registerForAnEvent(String eventId) Future
This function is used to register user for an event.
setOrgStreamSubscription() void
This function is used to set stream subscription for an organization.
toString() String
A string representation of this object.
<span class="feature">inherited</span>
Operators
operator ==(Object other) bool
The equality operator.
<span class="feature">inherited</span>