WaitForCondition constructor Null safety

const WaitForCondition(
  1. SerializableWaitCondition condition,
  2. {Duration? timeout}
)

Creates a command that waits for the given condition is met.

The condition argument must not be null.

Implementation

const WaitForCondition(this.condition, {super.timeout})
    : assert(condition != null);