withGrade method

  1. @useResult
WidgetSelector<Icon> withGrade(
  1. double? value
)

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

Example usage:

spot<Icon>().withGrade(10.5).existsOnce();

Implementation

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