CommandWithTarget constructor Null safety

CommandWithTarget(
  1. SerializableFinder finder,
  2. {Duration? timeout}
)

Constructs this command given a finder.

Implementation

CommandWithTarget(this.finder, {super.timeout}) {
  assert(finder != null, '$runtimeType target cannot be null');
}