FlutterMockServer constructor
FlutterMockServer({
- required String configPath,
- String host = 'localhost',
- int port = 8080,
- YamlConfigParser? parser,
- TemplateEngine? templateEngine,
- Random? random,
Creates a mock server instance for the provided config file and bind target.
Implementation
FlutterMockServer({
required this.configPath,
this.host = 'localhost',
this.port = 8080,
YamlConfigParser? parser,
TemplateEngine? templateEngine,
Random? random,
}) : _parser = parser ?? YamlConfigParser(),
_providedTemplateEngine = templateEngine,
_providedRandom = random,
_templateEngine = templateEngine ?? TemplateEngine(random: random),
_random = random ?? Random();