data method
dynamic
data()
Implementation
data() {
if (RegExp(".*\/", caseSensitive: false).hasMatch(pathFile)) {
var splitText = pathFile.toString().split(".");
if (splitText.length > 1) {
if (checkExtenstion(splitText.last.toString().toLowerCase())) {
if (File(pathFile).existsSync()) {
var getFile = File(pathFile).readAsStringSync();
if (ifjs(getFile)) {
return getFile;
} else {
return false;
}
} else {
File(pathFile).createSync();
return false;
}
} else {
throw ("sorry curently library does not support ${splitText.last.toString()} extension format");
}
} else {
throw ("PLease Add Format in last text\neg: path/azkadev.json");
}
} else {
throw ("PLease Add correct path file");
}
}