withEnabled method
Creates a WidgetSelector that finds all TextField where enabled equals (==) value
.
Example usage:
spot<TextField>().withEnabled(true).existsOnce();
Implementation
@useResult
WidgetSelector<TextField> withEnabled(bool? value) {
return withDiagnosticProp<bool>(
'enabled', (it) => value == null ? it.isNull() : it.equals(value));
}