DateFieldStateMixin mixin

Mixin supports 2 digits day or month, 2 digits month or day and 4 digits year text fields.

Properties

day int?
getter/setter pair
formatter DateFieldFormatter
no setter
hashCode int
The hash code for this object.
no setterinherited
month int?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
valid bool
getter/setter pair
year int?
getter/setter pair

Methods

buildMixin({TextInputAction action = fieldAction, bool enabled = fieldEnabled, String? hint, required TextStyles styles}) Widget
Call this on building the UI.
container(TextField textField) Widget
disposeMixin() → void
Call this on diposing.
hasFocus() bool
initStateMixin({required String? initialDate, required bool initialValid, required String separator}) → void
Call this on initializing.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onChanged() → void
Call this on changing text. _validate() should be outside of this implementation.
refresh() → void
Call this on refreshing the UI.
split({required String separator}) List<String>
Split text to obtaining day, month and year.
toString() String
A string representation of this object.
inherited

Operators

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