ShakeFile.create constructor

ShakeFile.create(
  1. String path, [
  2. String? name
])

Creates new file.

Implementation

ShakeFile.create(String path, [String? name]) {
  this.path = path;
  if (name != null) {
    this.name = name + extension(path);
  } else {
    this.name = basename(path);
  }
}