createNew method
Create evv filePath
if not exists.
Takes in a bool recrusive, to create the file recrusively or not.
Implementation
bool createNew({recrusive = false}) {
if (!File(filePath).existsSync()) {
try {
File(filePath).createSync(recursive: recrusive);
return true;
} catch (error) {
return false;
}
} else {
return true;
}
}