RelativeDateTime constructor

RelativeDateTime({
  1. required DateTime dateTime,
  2. required DateTime other,
})

Creates a RelativeDateTime.

Ensure to provide two comparable DateTime objects.

Implementation

RelativeDateTime({
  required this.dateTime,
  required this.other,
});