TransactionManager constructor
TransactionManager({
- String? folderName,
Implementation
factory TransactionManager({String? folderName}) {
_singleton._tempFolderName = folderName ?? ".transactions";
_singleton._rootFolder =
Directory('${Directory.current.path}/${_singleton._tempFolderName}');
if (!_singleton._rootFolder.existsSync()) {
_singleton._rootFolder.createSync(recursive: true);
}
return _singleton;
}