VMServiceHandler class
Constructors
-
VMServiceHandler.new({required Directory root, required String serverFile, required Future<
MetaServer> codeGenerator([void (String)?]), required Logger logger, required bool canHotReload, required List<String> serverArgs, required Mode mode, required Future<void> onFilesChange(List<String> ), required Future<void> onFileRemove(String), required Future<List< errors(), DartDefine dartDefine = const DartDefine(), String dartVmServicePort = '0'})(String, List< >AnalysisError> )>
Properties
- canHotReload → bool
-
final
-
codeGenerator
→ Future<
MetaServer> Function([void (String)?]) -
final
- dartDefine → DartDefine
-
final
- dartVmServicePort → String
-
final
-
errors
→ Future<
List< Function()(String, List< >AnalysisError> )> -
final
-
exitCode
→ Future<
int> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCompleted → bool
-
no setter
- isInputWatching → bool
-
no setter
- isServerRunning → bool
-
no setter
- isWatching → bool
-
no setter
- logger → Logger
-
final
- mode → Mode
-
final
-
onFileRemove
→ Future<
void> Function(String) -
final
-
onFilesChange
→ Future<
void> Function(List<String> ) -
final
- root → Directory
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
serverArgs
→ List<
String> -
final
- serverFile → String
-
final
Methods
-
checkForErrors(
) → Future< bool> -
clearConsole(
) → void -
lockInput(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
printInputCommands(
) → void -
printParsedRoutes(
List< MetaRoute> ? routes0) → void -
printVmServiceUri(
) → void -
serve(
{required bool enableHotReload, void onReady()?}) → Future< void> -
start(
{required bool enableHotReload}) → Future< void> -
stop(
[int exitCode = 0]) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
-
unlockInput(
) → void -
watchForFileChanges(
) → void -
watchForInput(
) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited