ICalendar class

Core object

Constructors

ICalendar({required List<Map<String, dynamic>> data, required Map<String, dynamic> headData})
Default constructor.
ICalendar.fromLines(List<String> lines, {bool allowEmptyLine = true})
Parse an ICalendar object from a List<String>.
factory
ICalendar.fromString(String icsString, {bool allowEmptyLine = true, String lineSeparator = '\r\n'})
Parse an ICalendar object from a String. The parameter icsString will be split on each lineSeparator occurence which is by default \r\n.
factory

Properties

calscale String?
CALSCALE of the object.
no setter
data List<Map<String, dynamic>>
iCalendar's components list.
final
hashCode int
The hash code for this object.
no setterinherited
headData Map<String, dynamic>
iCalendar's fields.
final
method String?
METHOD of the object.
no setter
prodid String
PRODID of the object.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version String
VERSION of the object.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert ICalendar object to a Map<String, dynamic> containing all its data, formatted into a valid JSON Map<String, dynamic>.
toString() String
A string representation of this object.
override

Operators

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

Static Properties

objects Map<String, Function>
Managed parsing methods.
no setter

Static Methods

fromListToJson(List<String> lines, {bool allowEmptyLine = true}) List
Parse a list of icalendar object from a List<String>.
registerField({required String field, dynamic function(String value, Map<String, String> params, List event, Map<String, dynamic> lastEvent)?}) → void
Allow to add custom field to parse.
unregisterField(String field) → void
Remove an existing parsing field.