Date.from constructor

Date.from(
  1. DateTime dateTime
)

Implementation

Date.from(final DateTime dateTime)
    : day = dateTime.day,
      month = dateTime.month,
      year = dateTime.year;