setPath method

void setPath(
  1. String path
)

set path

Implementation

void setPath(String path) {
  if (path.runtimeType != String) {
    throw Exception('path must be a string');
  } else {
    this.path = path;
  }
}