DateTimePickerUnit class

Constructors

DateTimePickerUnit({String? year, String? month, String? day, String? hour, String? minute, String? second})
设置 null 不显示 year == null 不显示年
const
DateTimePickerUnit.all({String? year = 'Y', String? month = 'M', String? day = 'D', String? hour = 'H', String? minute = 'M', String? second = 'S'})
const
DateTimePickerUnit.date({String? year = 'Y', String? month = 'M', String? day = 'D'})
const
DateTimePickerUnit.hm({String? hour = 'H', String? minute = 'M', String? second = 'S'})
const
DateTimePickerUnit.md({String? month = 'M', String? day = 'D'})
const
DateTimePickerUnit.time({String? hour = 'H', String? minute = 'M', String? second = 'S'})
const
DateTimePickerUnit.yhm({String? year = 'Y', String? month = 'M', String? day = 'D', String? hour = 'H', String? minute = 'M'})
const
DateTimePickerUnit.ym({String? year = 'Y', String? month = 'M'})
const

Properties

day String?
final
hashCode int
The hash code for this object.
no setterinherited
hour String?
final
minute String?
final
month String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
second String?
final
year String?
final

Methods

getLength() int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited