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, {Duration timeout})
    : assert(condition != null),
      super(timeout: timeout);