EventService class
Methods
-
addContactToList(AtContact _selectedContact)
→ void
-
adds a contact to the contact list
-
addNewContactAndGroupMembers(List<GroupContactsModel?> selectedList)
→ dynamic
-
adds new contacts and group members to the event notification model
-
addNewGroupMembers(List<AtContact> selectedContactList)
→ dynamic
-
adds
selectedContactList
for the event being created
-
checForOneDayEventFormValidation(EventNotificationModel eventData)
→ dynamic
-
checks for one-day event form validation based on the provided
eventData
-
checForRecurringeDayEventFormValidation(EventNotificationModel eventData)
→ dynamic
-
checks for recurring event form validation based on the provided
eventData
-
checkAtsign(String receiver, {String root = 'root.atsign.org'})
→ Future<bool>
-
checks
receiver
is a valid atsign
-
createContactListFromGroupMembers()
→ dynamic
-
creates a contact list from the group members
-
createEvent({bool isEventOverlap = false, BuildContext? context})
→ dynamic
-
creates a new event or edits the event passed to init() function
-
createEventFormValidation()
→ dynamic
-
validates event details
-
editEvent()
→ Future
-
edits the event passed to init() function
-
getAtKey(String regexKey)
→ AtKey
-
returns
AtKey
of regexKey
-
getGroupMemberContact(AtContact atcontact)
→ AtContact
-
creates a new
AtContact
object for a group member based on the provided atcontact
-
init(bool isUpdate, EventNotificationModel? eventData)
→ dynamic
-
always called before creating or editing an event
-
isEventTimeSlotOverlap(List<EventNotificationModel?> hybridEvents, EventNotificationModel? newEvent)
→ dynamic
-
checks if there is any overlap in time slots between the provided
hybridEvents
and newEvent
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyAll(AtKey atkey, String value, List<String?> atsigns)
→ Future<void>
-
notifies all the specified Atsigns about an update using the provided
atkey
, value
, and atsigns
-
removeSelectedContact(int index)
→ dynamic
-
removes the selected contact at the given
index
from the event notification model
-
sendEventNotification()
→ dynamic
-
sends a new 'createevent' key
-
showConcurrentEventDialog(List<EventNotificationModel>? createdEvents, EventNotificationModel? newEvent, BuildContext context)
→ bool?
-
checks if
newEvent
overlaps with any other event
-
toString()
→ String
-
A string representation of this object.
inherited
-
update({EventNotificationModel? eventData})
→ dynamic
-
eventData
is added to the eventSink