bool isRoot

Is this the root path?

Source

bool get isRoot {
  return name == '/';
}