SchedulePositionList<T extends Object?> class
A scrollable list widget that displays schedule items with position tracking.
This widget creates a scrollable list of schedule items (events, month headers, empty days) and tracks their positions for visibility and navigation purposes. It's used both in continuous schedule views and as individual pages in paginated schedule views.
The widget automatically generates and maintains a map of items based on the provided date range and events, handling different item types:
MonthItem: Month header separatorsEventItem: Individual event entriesEmptyItem: Placeholder for days with no events (configurable)
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SchedulePositionList
Constructors
-
SchedulePositionList({Key? key, required EventsController<
T> eventsController, required ScheduleViewController<T> viewController, required DateTimeRange<DateTime> dateTimeRange, required int currentPage, required bool paginated, required ScheduleBodyConfiguration configuration}) -
Creates a SchedulePositionList.
const
Properties
- configuration → ScheduleBodyConfiguration
-
Configuration options for the schedule body behavior.
final
- currentPage → int
-
The current page index (used in paginated views).
final
-
dateTimeRange
→ DateTimeRange<
DateTime> -
The date range to display in this list.
final
-
eventsController
→ EventsController<
T> -
The controller managing the events displayed in this list.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- paginated → bool
-
Whether this list is part of a paginated view.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
viewController
→ ScheduleViewController<
T> -
The schedule view controller for this specific view.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< SchedulePositionList< T> > -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
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
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited