Date.fromMicroseconds constructor
Date.fromMicroseconds(
- int microseconds
Creates a Date from the given microseconds since epoch. If microseconds
represents a date-time, the time is truncated.
Implementation
factory Date.fromMicroseconds(int microseconds) {
final date = DateTime.fromMicrosecondsSinceEpoch(microseconds);
return Date(date.year, date.month, date.day);
}