HolidayListView class

A widget that displays a list of holidays for a given year/month.

Inheritance

Constructors

HolidayListView({Key? key, int? year, int? month, String language = 'id', Widget itemBuilder(BuildContext context, Holiday holiday)?, Widget loadingBuilder(BuildContext context)?, Widget errorBuilder(BuildContext context, Object? error)?, Widget emptyBuilder(BuildContext context)?, Widget separatorBuilder(BuildContext context, int index)?, Axis scrollDirection = Axis.vertical, bool shrinkWrap = false, ScrollPhysics? physics, EdgeInsetsGeometry? padding, bool reverse = false, double? cacheExtent, double? itemExtent, ScrollController? controller, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true, DragStartBehavior dragStartBehavior = DragStartBehavior.start, ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual, String? restorationId, Clip clipBehavior = Clip.hardEdge})
const

Properties

addAutomaticKeepAlives bool
Whether to add automatic keep-alives for performance.
final
addRepaintBoundaries bool
Whether to add repaints on scroll for performance.
final
addSemanticIndexes bool
Whether to add semantic indexes for accessibility.
final
cacheExtent double?
Cache extent for performance optimization.
final
clipBehavior Clip
Clip behavior for the list.
final
controller ScrollController?
Primary scroll controller.
final
dragStartBehavior DragStartBehavior
Drag start behavior.
final
emptyBuilder Widget Function(BuildContext context)?
Custom builder for empty state. If null, uses "No holidays found" text.
final
errorBuilder Widget Function(BuildContext context, Object? error)?
Custom builder for error state. If null, uses error text.
final
hashCode int
The hash code for this object.
no setterinherited
itemBuilder Widget Function(BuildContext context, Holiday holiday)?
Custom builder for holiday items. If null, uses default ListTile.
final
itemExtent double?
Item extent for performance optimization (if all items have same height).
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardDismissBehavior ScrollViewKeyboardDismissBehavior
Keyboard dismiss behavior.
final
language String
final
loadingBuilder Widget Function(BuildContext context)?
Custom builder for loading state. If null, uses CircularProgressIndicator.
final
month int?
final
padding EdgeInsetsGeometry?
Padding around the list.
final
physics ScrollPhysics?
Physics for the list scrolling.
final
restorationId String?
Restoration ID for state restoration.
final
reverse bool
Whether to reverse the scroll direction.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollDirection Axis
Scroll direction for the list.
final
separatorBuilder Widget Function(BuildContext context, int index)?
Custom builder for item separator. If null, no separator.
final
shrinkWrap bool
Whether the list should shrink-wrap its contents.
final
year int?
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<HolidayListView>
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