BasicEvent class

A basic implementation of Event to get you started.

See also:

Inheritance
Available extensions

Constructors

BasicEvent({required Object id, required String title, required Color backgroundColor, required DateTime start, required DateTime end})
const

Properties

backgroundColor Color
The background color used for displaying this event.
final
duration Duration

Available on Event, provided by the EventExtension extension

no setter
end DateTime
End of the event; exclusive.
finalinherited
endInclusive DateTime

Available on Event, provided by the EventExtension extension

no setter
hashCode int
The hash code for this object.
no setteroverride
id Object
An ID for this event.
final
interval → Interval

Available on Event, provided by the EventExtension extension

no setter
isAllDay bool
no setterinherited
isPartDay bool

Available on Event, provided by the EventExtension extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start DateTime
Start of the event; inclusive.
finalinherited
title String
A title displayed to the user.
final

Methods

copyWith({Object? id, String? title, Color? backgroundColor, DateTime? start, DateTime? end}) BasicEvent
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited
toTimeOverlay(BuildContext context, {required DateTime date, required Widget widget, TimeOverlayPosition position = TimeOverlayPosition.inFrontOfEvents}) TimeOverlay?

Available on Event, provided by the EventToTimeOverlay extension

Operators

operator ==(dynamic other) bool
The equality operator.
override