BasicAllowance constructor

BasicAllowance({
  1. Iterable<Coin>? spendLimit,
  2. Timestamp? expiration,
})

Implementation

factory BasicAllowance({
  $core.Iterable<$2.Coin>? spendLimit,
  $3.Timestamp? expiration,
}) {
  final _result = create();
  if (spendLimit != null) {
    _result.spendLimit.addAll(spendLimit);
  }
  if (expiration != null) {
    _result.expiration = expiration;
  }
  return _result;
}