withInherit method
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));
}