FlutterWeekViewEvent class
Represents a flutter week view event.
- Inheritance
-
- Object
- Comparable<
FlutterWeekViewEvent> - FlutterWeekViewEvent
Constructors
- FlutterWeekViewEvent({required String title, required String description, required DateTime start, required DateTime end, Color? backgroundColor = const Color(0xCC2196F3), BoxDecoration? decoration, TextStyle? textStyle = const TextStyle(color: Colors.white), EdgeInsets? padding = const EdgeInsets.all(10), EdgeInsets? margin, VoidCallback? onTap, VoidCallback? onLongPress, EventTextBuilder? eventTextBuilder})
- Creates a new flutter week view event instance.
Properties
- backgroundColor → Color?
-
The event widget background color.
final
- decoration → BoxDecoration?
-
The event widget decoration.
final
- description → String
-
The event description.
final
- end ↔ DateTime
-
The event end date & time.
getter/setter pair
- eventTextBuilder → EventTextBuilder?
-
The event text builder.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- margin → EdgeInsets?
-
The event widget margin.
final
- onLongPress → VoidCallback?
-
The event widget long press event.
final
- onTap → VoidCallback?
-
The event widget tap event.
final
- padding → EdgeInsets?
-
The event widget padding.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start ↔ DateTime
-
The event start date & time.
getter/setter pair
- textStyle → TextStyle?
-
The event text widget text style.
final
- title → String
-
The event title.
final
Methods
-
build(
BuildContext context, DayView dayView, double height, double width) → Widget - Builds the event widget.
-
compareTo(
FlutterWeekViewEvent other) → int -
Compares this object to another object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shiftEventTo(
DateTime newStartTime) → void -
Shifts the start and end times, so that the event's duration is unaltered
and the event now starts in
newStartTime
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited