isValidPath static method

bool isValidPath(
  1. String path
)

Implementation

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