DartPad constructor
DartPad({
- required Key key,
- EmbeddingChoice embeddingChoice = EmbeddingChoice.dart,
- double width = 600,
- double height = 600,
- bool darkMode = true,
- bool runImmediately = false,
- bool nullSafety = true,
- int? split,
- String code = "void main() { print('Hello World');}",
- String? testCode,
- String? solutionCode,
- String? hintText,
Implementation
DartPad({
required Key key,
this.embeddingChoice = EmbeddingChoice.dart,
this.width = 600,
this.height = 600,
this.darkMode = true,
this.runImmediately = false,
this.nullSafety = true,
this.split,
this.code = "void main() { print('Hello World');}",
this.testCode,
this.solutionCode,
this.hintText,
}) : assert(split == null || (split <= 100 && split >= 0)),
super(key: key);