Events class

A simple event object for Cupertno Calendar

Inheritance
Implementers

Constructors

Events({required String name, required DateTime from, required DateTime to, String? description})
Create new Events

Properties

description String?
Optional string for describe this Events
final
from DateTime
Get when this Events start
no setter
hashCode int
The hash code for this object.
no setterinherited
json Map<String, dynamic>
Generate json object
no setteroverride
name String
Remind's name
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
to DateTime
Get when this Events end
no setter

Methods

isHappening(DateTime dateTime) bool
Check dateTime's datetime is happening
inherited
isOngoing(DateTime dateTime) bool
Like isOngoing, but check dateTime's date only
inherited
isOngoingDate(DateTime dateTime) bool
Like isOngoing, but check dateTime's date only
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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