Skip to main content

EventService class

EventService class provides different services in the context of Event.

Services include:

  • setOrgStreamSubscription : to set organization stream subscription for user.
  • getEvents : to get all events of the organization.
  • fetchRegistrantsByEvent : to fetch all registrants of an event.
  • registerForAnEvent : to register for an event.
  • deleteEvent : to delete an event.
  • editEvent : to edit the event.
  • dispose : to cancel the stream subscription of an organization.

Constructors

EventService ()

Properties

eventStreamStream<Event>

The event stream.
read-only

hashCodeint

The hash code for this object.
read-onlyinherited

runtimeTypeType

A representation of the runtime type of the object.
read-onlyinherited

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.
inherited

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.
inherited

Operators

operator ==(Object other) bool

The equality operator.
inherited