isRoot property

bool get isRoot

Is this the root path?

Implementation

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