resetInstance static method
void
resetInstance({
- File? workingFile,
- Directory? flutterRoot,
- Directory? dartUiRoot,
- FileSystem filesystem = const LocalFileSystem(),
Resets the instance with new parameters.
Any existing data in the model will be lost.
Implementation
static void resetInstance(
{File? workingFile,
Directory? flutterRoot,
Directory? dartUiRoot,
FileSystem filesystem = const LocalFileSystem()}) {
_instance?.dispose();
_instance = Model._(
workingFile: workingFile,
flutterRoot: flutterRoot,
dartUiRoot: dartUiRoot,
filesystem: filesystem,
);
}