FileInfo constructor

FileInfo({
  1. String? filePath,
  2. Int64? size,
  3. Timestamp? modifyTime,
  4. bool? isDir,
  5. bool? isCompressed,
})

Implementation

factory FileInfo({
  $core.String? filePath,
  $fixnum.Int64? size,
  $0.Timestamp? modifyTime,
  $core.bool? isDir,
  $core.bool? isCompressed,
}) {
  final _result = create();
  if (filePath != null) {
    _result.filePath = filePath;
  }
  if (size != null) {
    _result.size = size;
  }
  if (modifyTime != null) {
    _result.modifyTime = modifyTime;
  }
  if (isDir != null) {
    _result.isDir = isDir;
  }
  if (isCompressed != null) {
    _result.isCompressed = isCompressed;
  }
  return _result;
}