Repl class Null safety

Constructors

Repl({String prompt = '', String? continuation, StatementValidator? validator, int maxHistory = 50})

Properties

continuation String
Text displayed at start of continued statement line.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
history List<String>
History is by line, not by statement.
read / write
maxHistory int
Maximum history that will be kept in the list.
read / write
prompt String
Text displayed when prompting the user for a new statement.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
validator StatementValidator
Called when a newline is entered to determine whether the queue a completed statement or allow for a continuation.
read / write

Methods

exit() FutureOr<void>
Kills and cleans up the REPL.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
run() Iterable<String>
Run the REPL, yielding complete statements synchronously.
runAsync() Stream<String>
Run the REPL, yielding complete statements asynchronously.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited