Line data Source code
1 : import 'package:flutter/semantics.dart'; 2 : 3 : /// Defines semantic traversal order of the top-level widgets 4 : /// inside the day or week picker. 5 : class MonthPickerSortKey extends OrdinalSortKey { 6 : /// Previous month key. 7 : static const MonthPickerSortKey previousMonth = MonthPickerSortKey(1.0); 8 : 9 : /// Next month key. 10 : static const MonthPickerSortKey nextMonth = MonthPickerSortKey(2.0); 11 : 12 : /// Calendar key. 13 : static const MonthPickerSortKey calendar = MonthPickerSortKey(3.0); 14 : 15 : /// 16 5 : const MonthPickerSortKey(double order) : super(order); 17 : } 18 : 19 : /// Defines semantic traversal order of the top-level widgets 20 : /// inside the month picker. 21 : class YearPickerSortKey extends OrdinalSortKey { 22 : /// Previous year key. 23 : static const YearPickerSortKey previousYear = YearPickerSortKey(1.0); 24 : 25 : /// Next year key. 26 : static const YearPickerSortKey nextYear = YearPickerSortKey(2.0); 27 : 28 : /// Calendar key. 29 : static const YearPickerSortKey calendar = YearPickerSortKey(3.0); 30 : 31 : /// 32 5 : const YearPickerSortKey(double order) : super(order); 33 : }