readDefFileText function
Implementation
String readDefFileText(
String filePath,
{
String baseFolderPath = '',
String Function( String, [String] )? readTextFileFunction = readTextFile,
bool hasImportCommands = true,
String Function( String )? getImportedPathFunction = getImportedPath,
List<String> Function( String )? getImportedFilePathArrayFunction = getImportedFilePathArray
}
)
{
var fileText = readTextFileFunction!( filePath, baseFolderPath ).trimRight();
if ( hasImportCommands )
{
fileText =
processDefFileText(
fileText,
baseFolderPath: baseFolderPath,
filePath: filePath,
readTextFileFunction: readTextFileFunction,
hasImportCommands: hasImportCommands,
getImportedPathFunction: getImportedPathFunction,
getImportedFilePathArrayFunction: getImportedFilePathArrayFunction
);
}
return fileText;
}