fromDateTime static method

  1. @deprecated
DateComponents fromDateTime(
  1. DateTime dateTime
)

Implementation

@deprecated
static DateComponents fromDateTime(DateTime dateTime) => DateComponents(
    day: dateTime.day, month: dateTime.month, year: dateTime.year);