withFontInherit method

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

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

Example usage:

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

Implementation

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