static bool isValidPath(String path) { final regex = RegExp(r"^(m\/)?(\d+'?\/)*\d+'?$"); return regex.hasMatch(path); }