BuilderCalendarDelegate<T> class

A calendar delegate that specifies a builder to generate widgets according to the event data.

Specify a builder in builder that generates widgets according to the event data.

Builders can be specified according to conditions using selectedBuilder, todayBuilder, outsideBuilder, etc.

イベントのデータに応じたウィジェットを生成するビルダーを指定するカレンダーデリゲートです。

builderにイベントのデータに応じたウィジェットを生成するビルダーを指定します。

selectedBuildertodayBuilderoutsideBuilderなどで条件に応じてビルダーを指定することができます。

Inheritance

Constructors

BuilderCalendarDelegate({required Widget? builder(BuildContext context, CalendarStyle style, DateTime date, List<CalendarEventItem<T>> events), Widget? outsideBuilder(BuildContext context, CalendarStyle style, DateTime date, List<CalendarEventItem<T>> events)?, Widget? selectedBuilder(BuildContext context, CalendarStyle style, DateTime date, List<CalendarEventItem<T>> events)?, Widget? todayBuilder(BuildContext context, CalendarStyle style, DateTime date, List<CalendarEventItem<T>> events)?})
A calendar delegate that specifies a builder to generate widgets according to the event data.
const

Properties

builder Widget? Function(BuildContext context, CalendarStyle style, DateTime date, List<CalendarEventItem<T>> events)
Builder for displaying events.
final
hashCode int
The hash code for this object.
no setterinherited
outsideBuilder → (Widget? Function(BuildContext context, CalendarStyle style, DateTime date, List<CalendarEventItem<T>> events)?)
Builder to show events outside the range for that month.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedBuilder → (Widget? Function(BuildContext context, CalendarStyle style, DateTime date, List<CalendarEventItem<T>> events)?)
Builder to display events for selected dates.
final
todayBuilder → (Widget? Function(BuildContext context, CalendarStyle style, DateTime date, List<CalendarEventItem<T>> events)?)
Builder to display today's events.
final

Methods

buildDay(BuildContext context, CalendarStyle style, DateTime date) Widget
Generates the date display portion.
inherited
buildDaysOfWeekWeekday(BuildContext context, CalendarStyle style, DateTime date) Widget
Generates the weekday display portion of the weekday.
inherited
buildDaysOfWeekWeekend(BuildContext context, CalendarStyle style, DateTime date) Widget
Generate the display portion of the weekend days of the week.
inherited
buildEvents(BuildContext context, CalendarStyle style, DateTime date, List<CalendarEventItem<T>> events) Widget?
Generate a widget to display the event.
override
buildHolidayDay(BuildContext context, CalendarStyle style, DateTime date) Widget
Generates the display portion of the holiday date.
inherited
buildOutsideDay(BuildContext context, CalendarStyle style, DateTime date) Widget
Generates the display portion of dates outside the month range.
inherited
buildOutsideEvents(BuildContext context, CalendarStyle style, DateTime date, List<CalendarEventItem<T>> events) Widget?
Generates a widget that displays events for dates outside the month range.
override
buildOutsideHolidayDay(BuildContext context, CalendarStyle style, DateTime date) Widget
Generates the display portion of holiday dates outside of the month range.
inherited
buildOutsideWeekendDay(BuildContext context, CalendarStyle style, DateTime date) Widget
Generates the display portion of weekend dates outside of the month range.
inherited
buildSelectedDay(BuildContext context, CalendarStyle style, DateTime date) Widget
Generates the display portion of the selected date.
inherited
buildSelectedEvents(BuildContext context, CalendarStyle style, DateTime date, List<CalendarEventItem<T>> events) Widget?
Generates a widget that displays events for the selected date.
override
buildTodayDay(BuildContext context, CalendarStyle style, DateTime date) Widget
Generates the display portion of today's date.
inherited
buildTodayEvents(BuildContext context, CalendarStyle style, DateTime date, List<CalendarEventItem<T>> events) Widget?
Generates a widget that displays today's events.
override
buildUnavailableDay(BuildContext context, CalendarStyle style, DateTime date) Widget
Generates display grains for unavailable dates.
inherited
buildWeekendDay(BuildContext context, CalendarStyle style, DateTime date) Widget
Generate the display portion of the weekend date.
inherited
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