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