lookup method

  1. @override
CalendarValueLookup lookup(
  1. int year, [
  2. int? month,
  3. int? day
])
override

Implementation

@override
CalendarValueLookup lookup(int year, [int? month, int? day]) {
  DateTime current = DateTime(year, month ?? 1, day ?? 1);
  if (dates.any((element) => _convertNecessarry(element, year, month, day)
      .isAtSameMomentAs(current))) {
    return CalendarValueLookup.selected;
  }
  return CalendarValueLookup.none;
}