validate method

bool validate()

Validates the supplied data.

Implementation

bool validate() {
  final typed = (type == URIType.file && file != null) ||
      (type == URIType.directory && directory != null) ||
      (type == URIType.network && uri != null);
  return typed && (type != URIType.other);
}