ICalendar class
Core object
- Annotations
-
- @immutable
Constructors
-
ICalendar({required List<
Map< data, required Map<String, dynamic> >String, dynamic> headData}) -
Default constructor.
const
-
ICalendar.fromLines(List<
String> lines, {bool allowEmptyLine = true}) -
Parse an ICalendar object from a List<String>.
factory
- ICalendar.fromString(String icsString, {bool allowEmptyLine = true})
-
Parse an ICalendar object from a String. The parameter
icsString
will be split using LineSplitter then callingICalendar.fromLines
.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 JSONMap<String, dynamic>
. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromListToJson(
List< String> lines, {bool allowEmptyLine = true}) → List - Parse a list of icalendar object from a List<String>.
-
jsonEncodable(
Object? item) → Object? -
registerField(
{required String field, SimpleParamFunction? function}) → void - Allow to add custom field to parse.
-
unregisterField(
String field) → void - Remove an existing parsing field.