withValue method

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

Example usage:

spot<LinearProgressIndicator>().withValue(10.5).existsOnce();

Implementation

@useResult
WidgetSelector<LinearProgressIndicator> withValue(double? value) {
  return withDiagnosticProp<double>(
      'value', (it) => value == null ? it.isNull() : it.equals(value));
}