ConsoleService class

Console utils

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

ask(String question, {String? defaultValue, bool? required, dynamic validator}) String
Ask question on command line
confirm(String question, {bool defaultValue = false}) bool
Confirm question on command line
find(String pattern, {List<Find> types = const [Find.file], bool recursive = true, String workingDirectory = '.'}) List<String>
Find files or directories
show a selectable menu on command line
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance ConsoleService
shared instance
getter/setter pair