LCOV - code coverage report
Current view: top level - src - unselectable_period_error.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 0 5 0.0 %
Date: 2022-02-12 14:49:12 Functions: 0 0 -

          Line data    Source code
       1             : import 'date_period.dart';
       2             : import 'range_picker.dart';
       3             : import 'week_picker.dart';
       4             : 
       5             : 
       6             : /// Exception thrown when selected period contains custom disabled days.
       7             : class UnselectablePeriodException implements Exception {
       8             :   /// Dates inside selected period what can't be selected
       9             :   /// according custom rules.
      10             :   final List<DateTime> customDisabledDates;
      11             : 
      12             :   /// Selected period wanted by the user.
      13             :   final DatePeriod period;
      14             : 
      15             :   /// Creates exception that stores dates that can not be selected.
      16             :   ///
      17             :   /// See also:
      18             :   /// *[WeekPicker.onSelectionError]
      19             :   /// *[RangePicker.onSelectionError]
      20           0 :   UnselectablePeriodException(this.customDisabledDates, this.period);
      21             : 
      22           0 :   @override
      23           0 :   String toString() =>
      24             :         "UnselectablePeriodException:"
      25           0 :         " ${customDisabledDates.length} dates inside selected period "
      26           0 :         "(${period.start} - ${period.end}) "
      27             :         "can't be selected according custom rules (selectable pridicate). "
      28             :         "Check 'customDisabledDates' property "
      29             :         "to get entire list of such dates.";
      30             : }

Generated by: LCOV version 1.15