YamlHelper constructor

YamlHelper({
  1. CommandHelper? commandHelper,
})

Creates a helper with an optional CommandHelper for consistent output.

Provide a fake in tests to capture or suppress output.

Implementation

YamlHelper({CommandHelper? commandHelper}) : _commandHelper = commandHelper ?? CommandHelper();