TuiTester constructor

TuiTester(
  1. Model model, {
  2. int width = 80,
  3. int height = 24,
  4. ColorProfile profile = ColorProfile.noColor,
  5. bool darkBackground = true,
  6. Map<String, String> environment = const {},
  7. List<ProgramOption> options = const [],
})

Runs model in a new Program.

Implementation

TuiTester(
  Model model, {
  int width = 80,
  int height = 24,
  ColorProfile profile = ColorProfile.noColor,
  bool darkBackground = true,
  Map<String, String> environment = const {},
  List<ProgramOption> options = const [],
}) : this.run(
        () => Program().run(model),
        width: width,
        height: height,
        profile: profile,
        darkBackground: darkBackground,
        environment: environment,
        options: options,
      );