isPathWithIndex function

bool isPathWithIndex(
  1. String path
)

Implementation

bool isPathWithIndex(String path) {
  final servicePath = path.split('/');
  return servicePath.length == 4 && servicePath[3] == '0';
}