PowerAssertionController constructor

PowerAssertionController({
  1. required PowerAssertionRunner runner,
  2. required PowerAssertionLevel level,
  3. PowerAssertionHold hold = PowerAssertionHold.perRun,
  4. void onWarn(
    1. String message
    )?,
})

Implementation

PowerAssertionController({
  required this.runner,
  required this.level,
  this.hold = PowerAssertionHold.perRun,
  this.onWarn,
});