parse method

  1. @override
FileSystemEntity parse(
  1. String value
)

Converts a source string value to the specific option value type. Must throw a FormatException with an appropriate message if the value cannot be parsed.

Implementation

@override
FileSystemEntity parse(final String value) {
  return FileSystemEntity.isDirectorySync(value)
      ? Directory(value)
      : File(value);
}