hasSubtitle method

WidgetMatcher<ListTile> hasSubtitle(
  1. Widget? value
)

Expects that subtitle of ListTile equals (==) value.

Example usage:

spot<ListTile>().existsOnce().hasSubtitle(Container());

Implementation

WidgetMatcher<ListTile> hasSubtitle(Widget? value) {
  return hasDiagnosticProp<Widget>(
      'subtitle', (it) => value == null ? it.isNull() : it.equals(value));
}