withContainer method

  1. @useResult
WidgetSelector<Semantics> withContainer(
  1. bool? value
)

Creates a WidgetSelector that finds all Semantics where container equals (==) value.

Example usage:

spot<Semantics>().withContainer(true).existsOnce();

Implementation

@useResult
WidgetSelector<Semantics> withContainer(bool? value) {
  return withDiagnosticProp<bool>(
      'container', (it) => value == null ? it.isNull() : it.equals(value));
}