FormulaContext constructor

FormulaContext({
  1. required PlatformInfo platform,
  2. String? targetVersion,
  3. Map<String, String> parameters = const {},
  4. Clock clock = const SystemClock(),
  5. void log(
    1. String line
    )?,
})

Creates a formula context.

Implementation

FormulaContext({
  required this.platform,
  this.targetVersion,
  this.parameters = const {},
  this.clock = const SystemClock(),
  void Function(String line)? log,
}) : log = log ?? _noop;