LightningRunner constructor
LightningRunner({})
Implementation
LightningRunner({
this.watchDependencies = true,
this.debounceInterval = const Duration(seconds: 1),
this.onBeforeReload,
this.onAfterReload,
this.onDirectoryWatching,
this.onFileChange,
this.onFileCreate,
this.onFileDelete,
}) {
if (!File('pubspec.yaml').existsSync()) {
throw StateError('''
Error: [pubspec.yaml] file not found in current directory.
For hot code reloading to function properly, Dart needs to be run from the root of your project.''');
}
}