Interpreter.fromLines constructor
Interpreter.fromLines({
- required List<
String> sourceLines, - TextOutputMethod? standardOutput,
- TextOutputMethod? errorOutput,
Constructor taking source code in the form of a list of strings.
Implementation
Interpreter.fromLines({
required List<String> sourceLines,
TextOutputMethod? standardOutput,
TextOutputMethod? errorOutput,
}) : this(
source: sourceLines.join("\n"),
standardOutput: standardOutput,
errorOutput: errorOutput);