LCOV - code coverage report
Current view: top level - models - calendar_day_builder_model.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 8 10 80.0 %
Date: 2022-10-19 14:19:28 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:flutter/cupertino.dart';
       2             : 
       3             : /// Model used for DayBuilder
       4             : @immutable
       5             : class CalendarDayBuilderModel {
       6             :   /// Specific DateTime of the day.
       7             :   final DateTime? dateTime;
       8             : 
       9             :   /// If true the day is inside the current selected month.
      10             :   final bool isInCurrentMonth;
      11             : 
      12             :   /// If true the day is selected.
      13             :   final bool isSelected;
      14             : 
      15             :   /// If true the day is one day of the weekend.
      16             :   final bool isWeekend;
      17             : 
      18             :   /// If true the day is before the minimumDay or after the maximumDay.
      19             :   /// If no minimumDay or maximumDay are chosen the value is false
      20             :   ///
      21             :   /// Default value: false
      22             :   final bool isOutOfRange;
      23             : 
      24           3 :   const CalendarDayBuilderModel({
      25             :     required this.dateTime,
      26             :     required this.isInCurrentMonth,
      27             :     required this.isSelected,
      28             :     required this.isWeekend,
      29             :     this.isOutOfRange = false,
      30             :   });
      31             : 
      32           1 :   @override
      33             :   bool operator ==(Object other) {
      34           1 :     return (other is CalendarDayBuilderModel) &&
      35           3 :         other.dateTime == this.dateTime &&
      36           3 :         other.isInCurrentMonth == this.isInCurrentMonth &&
      37           3 :         other.isSelected == this.isSelected &&
      38           3 :         other.isWeekend == this.isWeekend &&
      39           3 :         other.isOutOfRange == this.isOutOfRange;
      40             :   }
      41             : 
      42           0 :   @override
      43           0 :   int get hashCode => dateTime.hashCode;
      44             : }

Generated by: LCOV version 1.16