2024-05-18 09:37:50 +08:00

48 lines
1.0 KiB
Dart
Executable File

// import 'package:flutter_pickers/time_picker/model/date_type.dart';
import 'package:star_lock/tools/pickers/time_picker/model/date_type.dart';
/// 后缀标签
class Suffix {
late String years;
late String month;
late String days;
late String hours;
late String minutes;
late String seconds;
Suffix.normal() {
this.years = '';
this.month = '';
this.days = '';
this.hours = '';
this.minutes = '';
this.seconds = '';
}
Suffix(
{this.years: '',
this.month: '',
this.days: '',
this.hours: '',
this.minutes: '',
this.seconds: ''});
String getSingle(DateType dateType) {
switch (dateType) {
case DateType.Year:
return this.years;
case DateType.Month:
return this.month;
case DateType.Day:
return this.days;
case DateType.Hour:
return this.hours;
case DateType.Minute:
return this.minutes;
case DateType.Second:
return this.seconds;
}
}
}