withInherit method

  1. @useResult
WidgetSelector<AnyText> withInherit(
  1. bool? value
)

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

Example usage:

spot<AnyText>().withInherit(true).existsOnce();

Implementation

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