withShadows method

  1. @useResult
WidgetSelector<Icon> withShadows(
  1. Shadow? value
)

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

Example usage:

spot<Icon>().withShadows(Shadow(color: Colors.black, blurRadius: 10.0)).existsOnce();

Implementation

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