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;
}