TimeSpan constructor

TimeSpan({
  1. Timestamp? startTime,
  2. Timestamp? endTime,
})

Implementation

factory TimeSpan({
  $2.Timestamp? startTime,
  $2.Timestamp? endTime,
}) {
  final $result = create();
  if (startTime != null) {
    $result.startTime = startTime;
  }
  if (endTime != null) {
    $result.endTime = endTime;
  }
  return $result;
}