withSpacing method

  1. @useResult
WidgetSelector<Wrap> withSpacing(
  1. double? value
)

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

Example usage:

spot<Wrap>().withSpacing(10.5).existsOnce();

Implementation

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