isValid abstract method

bool isValid(
  1. String path,
  2. String root
)

Checking if file is valid or not if it was valid then return true else false

Implementation

bool isValid(String path, String root);