VMServiceHandler constructor

VMServiceHandler({
  1. required Directory root,
  2. required String serverFile,
  3. required Future<MetaServer?> codeGenerator([
    1. void (
      1. String
      )?
    ]),
  4. required Logger logger,
  5. required bool canHotReload,
  6. DartDefine dartDefine = const DartDefine(),
  7. String dartVmServicePort = '8080',
})

Implementation

VMServiceHandler({
  required this.root,
  required this.serverFile,
  required this.codeGenerator,
  required this.logger,
  required this.canHotReload,
  this.dartDefine = const DartDefine(),
  this.dartVmServicePort = '8080',
}) : assert(
        dartVmServicePort.isNotEmpty,
        'dartVmServicePort cannot be empty',
      );