DartPad constructor

DartPad({
  1. required Key key,
  2. EmbeddingChoice embeddingChoice = EmbeddingChoice.dart,
  3. double width = 600,
  4. double height = 600,
  5. bool darkMode = true,
  6. bool runImmediately = false,
  7. bool nullSafety = true,
  8. int? split,
  9. String code = "void main() { print('Hello World');}",
  10. String? testCode,
  11. String? solutionCode,
  12. 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);