file method

String file(
  1. String name
)

Get a file path from name if it is a folder. If it is a file, the file path will be returned.

Implementation

String file(String name) {
  if (isFile) {
    return _path;
  } else {
    return File('$_path\\$name').path;
  }
}