DayBarStyle class

Allows to configure the day bar style.

Constructors

DayBarStyle({DateFormatter? dateFormatter, TextStyle? textStyle, Color? color, Decoration? decoration, Alignment? textAlignment})
Creates a new day bar style instance.
const
DayBarStyle.fromDate({required DateTime date, DateFormatter? dateFormatter, TextStyle? textStyle, Color? color, Decoration? decoration, Alignment? textAlignment})
Creates a new day bar style according to the specified date.

Properties

color Color
The day bar background color. Defaults to light gray.
final
dateFormatter DateFormatter
The day formatter. Defaults to YYYY-MM-DD, e.g., 2020-01-15.
final
decoration Decoration?
The day bar decoration. Defaults to null.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textAlignment Alignment
The day bar text alignment. Defaults to Alignment.center.
final
textStyle TextStyle?
The day bar text style. Defaults to null, which will then format according to DayBar.textStyle.
final

Methods

copyWith({DateFormatter? dateFormatter, TextStyle? textStyle, Color? color, Decoration? decoration, Alignment? textAlignment}) DayBarStyle
Allows to copy the current style instance with your own properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited