hasTitleAlignment method

WidgetMatcher<ListTile> hasTitleAlignment(
  1. ListTileTitleAlignment? value
)

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

Example usage:

spot<ListTile>().existsOnce().hasTitleAlignment(ListTileTitleAlignment.values.first);

Implementation

WidgetMatcher<ListTile> hasTitleAlignment(ListTileTitleAlignment? value) {
  return hasDiagnosticProp<ListTileTitleAlignment>('titleAlignment',
      (it) => value == null ? it.isNull() : it.equals(value));
}