IcsDateTime class

This value type is used to identify values that specify a precise calendar date and time of day.

See doc: https://www.kanzaki.com/docs/ical/dateTime.html

To have access to as fully-parsed date and time you can use the package timezone which gives you access to a TimeZone aware DateTime object.

import 'package:timezone/standalone.dart' as tz;

final icsDt = IcsDateTime(/* ... */);
final date = tz.TZDateTime.parse(tz.getLocation(icsDt.tzid), icsDt.dt);
Annotations
  • @immutable

Constructors

IcsDateTime({String? tzid, required String dt})
const

Properties

dt String
Datetime value parsed from the ics file.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tzid String?
This property specifies the text value that uniquely identifies the "VTIMEZONE" calendar component.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDateTime() DateTime?
Use DateTime.tryParse to parse the dt property.
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
Compare this object with another IcsDateTime object.
override