isIndex property

bool isIndex

Implementation

bool get isIndex {
  final name = Path.basenameWithoutExtension(path);
  return name == 'index' || name == '_index';
}