isValidPath static method

bool isValidPath(
  1. String path
)

Implementation

static bool isValidPath(String path) {
  if (RegExp(r"^m/44'/637'/[0-9]+'/[0-9]+'/[0-9]+'+$").hasMatch(path)) {
    return true;
  }
  return false;
}