Duration constructor

Duration({
  1. Int64? seconds,
  2. int? nanos,
})

Implementation

factory Duration({
  $fixnum.Int64? seconds,
  $core.int? nanos,
}) {
  final $result = create();
  if (seconds != null) {
    $result.seconds = seconds;
  }
  if (nanos != null) {
    $result.nanos = nanos;
  }
  return $result;
}