Repl class

Constructors

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

Properties

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

Methods

exit() FutureOr<void>
Kills and cleans up the REPL.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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