ModelDate class
Define the field as a date.
The base value is given as value. If not given, the current date is set.
フィールドを日付として定義します。
ベースの値をvalueとして与えます。与えられなかった場合現在の日付がセットされます。
- Inheritance
-
- Object
- ModelFieldValue<
DateTime> - ModelDate
- Implemented types
- Available Extensions
- Annotations
Constructors
- ModelDate([DateTime? value])
-
Define the field as a date.
constfactory
- ModelDate.date(int year, [int? month, int? day])
-
Define the field as a date.
constfactory
- ModelDate.fromJson(DynamicMap json)
-
Convert from
json
map to ModelDate.factory - ModelDate.fromServer([DateTime? value])
-
Used to disguise the retrieval of data from the server.
constfactory
- ModelDate.now()
-
Define the field as a date.
constfactory
Properties
Methods
-
compareTo(
ModelDate other) → int -
Compares this object to another object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → DynamicMap -
Methods for Json serialization.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator <(
ModelDate other) → bool - Compare with other ModelDate.
-
operator <=(
ModelDate other) → bool - Compare with other ModelDate.
-
operator ==(
Object other) → bool -
The equality operator.
override
-
operator >(
ModelDate other) → bool - Compare with other ModelDate.
-
operator >=(
ModelDate other) → bool - Compare with other ModelDate.
Constants
- kSourceKey → const String
- Key to store the data source.
- kTimeKey → const String
- Key to save time.
- typeString → const String
- Type key.