Period constructor

Period({
  1. Int64? length,
  2. Iterable<Coin>? amount,
})

Implementation

factory Period({
  $fixnum.Int64? length,
  $core.Iterable<$2.Coin>? amount,
}) {
  final _result = create();
  if (length != null) {
    _result.length = length;
  }
  if (amount != null) {
    _result.amount.addAll(amount);
  }
  return _result;
}