ModelDate.date constructor

const ModelDate.date(
  1. int year, [
  2. int? month,
  3. int? day
])

Define the field as a date.

The date specified by year, month, or day is returned.

フィールドを日付として定義します。

yearmonthdayで指定した日付が返されます。

Implementation

const factory ModelDate.date(
  int year, [
  int? month,
  int? day,
]) = _ModelDateWithDateTime;