DateComponents class
@deprecated: Use FlexiDate instead.
- Inheritance
-
- Object
- FlexiDateData
- DateComponents
- Available extensions
- Annotations
Constructors
- DateComponents({int? day, int? month = 1, int? year})
- DateComponents.fromMap(Map toParse)
- DateComponents.now()
-
factory
Properties
- day ↔ int?
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAmbiguous ↔ bool
-
getter/setter pairinherited
- isValid → bool
-
no setterinherited
- month ↔ int?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source ↔ Object?
-
getter/setter pairinherited
- year ↔ int?
-
getter/setter pairinherited
Methods
-
copy(
) → DateComponents -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDateMap(
) → Map< String, int?> ? -
Available on FlexiDate, provided by the FlexiDateToMap extension
-
toJson(
) → dynamic -
inherited
-
toMap(
) → Map< String, int?> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
from(
dynamic input) → DateComponents -
override
-
fromDateTime(
DateTime dateTime) → DateComponents -
fromJson(
dynamic json) → DateComponents? -
parse(
String toParse) → DateComponents -
tryFrom(
dynamic input) → DateComponents? -
override
-
tryParse(
String input) → DateComponents?