ShareRequest constructor

ShareRequest({
  1. String? filePath,
  2. int? expire,
  3. Iterable<int>? to,
  4. String? password,
  5. int? accessCount,
})

Implementation

factory ShareRequest({
  $core.String? filePath,
  $core.int? expire,
  $core.Iterable<$core.int>? to,
  $core.String? password,
  $core.int? accessCount,
}) {
  final _result = create();
  if (filePath != null) {
    _result.filePath = filePath;
  }
  if (expire != null) {
    _result.expire = expire;
  }
  if (to != null) {
    _result.to.addAll(to);
  }
  if (password != null) {
    _result.password = password;
  }
  if (accessCount != null) {
    _result.accessCount = accessCount;
  }
  return _result;
}