FFCalendar constructor

FFCalendar({
  1. FFColor? legacyColor,
  2. bool? legacyWeekFormat,
  3. bool? legacyWeekStartsMonday,
  4. FFColor? legacyIconColor,
  5. FFText? titleStyle,
  6. FFText? dayOfWeekStyle,
  7. FFText? dateStyle,
  8. FFText? inactiveDateStyle,
  9. FFText? selectedDateStyle,
  10. FFDateTime? legacyInitialDate,
  11. double? legacyRowHeight,
  12. bool? legacyTwoRowHeader,
  13. FFDateTimeValue? initialDateValue,
  14. FFColorValue? colorValue,
  15. FFBooleanValue? weekFormatValue,
  16. FFBooleanValue? weekStartsMondayValue,
  17. FFColorValue? iconColorValue,
  18. FFDoubleValue? rowHeightValue,
  19. FFBooleanValue? twoRowHeaderValue,
})

Implementation

factory FFCalendar({
  FFColor? legacyColor,
  $core.bool? legacyWeekFormat,
  $core.bool? legacyWeekStartsMonday,
  FFColor? legacyIconColor,
  FFText? titleStyle,
  FFText? dayOfWeekStyle,
  FFText? dateStyle,
  FFText? inactiveDateStyle,
  FFText? selectedDateStyle,
  FFDateTime? legacyInitialDate,
  $core.double? legacyRowHeight,
  $core.bool? legacyTwoRowHeader,
  FFDateTimeValue? initialDateValue,
  FFColorValue? colorValue,
  FFBooleanValue? weekFormatValue,
  FFBooleanValue? weekStartsMondayValue,
  FFColorValue? iconColorValue,
  FFDoubleValue? rowHeightValue,
  FFBooleanValue? twoRowHeaderValue,
}) {
  final result = create();
  if (legacyColor != null) result.legacyColor = legacyColor;
  if (legacyWeekFormat != null) result.legacyWeekFormat = legacyWeekFormat;
  if (legacyWeekStartsMonday != null)
    result.legacyWeekStartsMonday = legacyWeekStartsMonday;
  if (legacyIconColor != null) result.legacyIconColor = legacyIconColor;
  if (titleStyle != null) result.titleStyle = titleStyle;
  if (dayOfWeekStyle != null) result.dayOfWeekStyle = dayOfWeekStyle;
  if (dateStyle != null) result.dateStyle = dateStyle;
  if (inactiveDateStyle != null) result.inactiveDateStyle = inactiveDateStyle;
  if (selectedDateStyle != null) result.selectedDateStyle = selectedDateStyle;
  if (legacyInitialDate != null) result.legacyInitialDate = legacyInitialDate;
  if (legacyRowHeight != null) result.legacyRowHeight = legacyRowHeight;
  if (legacyTwoRowHeader != null)
    result.legacyTwoRowHeader = legacyTwoRowHeader;
  if (initialDateValue != null) result.initialDateValue = initialDateValue;
  if (colorValue != null) result.colorValue = colorValue;
  if (weekFormatValue != null) result.weekFormatValue = weekFormatValue;
  if (weekStartsMondayValue != null)
    result.weekStartsMondayValue = weekStartsMondayValue;
  if (iconColorValue != null) result.iconColorValue = iconColorValue;
  if (rowHeightValue != null) result.rowHeightValue = rowHeightValue;
  if (twoRowHeaderValue != null) result.twoRowHeaderValue = twoRowHeaderValue;
  return result;
}