WebDev constructor

WebDev({
  1. bool watchChanges = true,
  2. required String projectDirectory,
  3. String builtDirectory = "build",
  4. String developmentDir = "web",
  5. bool buildInitialize = true,
  6. GlobalKey<State<StatefulComponent>>? key,
})

Implementation

WebDev(
    {this.watchChanges = true,
    required String projectDirectory,
    this.builtDirectory = "build",
    this.developmentDir = "web",
    this.buildInitialize = true,
    GlobalKey? key})
    : directory = projectDirectory.endsWith("/")
          ? projectDirectory
          : projectDirectory.endsWith(Platform.pathSeparator)
              ? projectDirectory
              : "$projectDirectory/",
      assert(!Uri.parse(builtDirectory).isAbsolute),
      assert(!Uri.parse(developmentDir).isAbsolute),
      super(key: key);