clearText method
Implementation
Future<void> clearText(
String id, {
TestStep? step,
Future<void> Function()? onBeforeText,
}) async {
final finder = assertions.finderForId(id);
_expectSingleWidget(finder, id, 'clearText');
await _ensureTextTargetReady(finder, 'clearText');
await _emitEvidenceBoundary(step);
await onBeforeText?.call();
await tester.enterText(finder, '');
await runtime.settleAfterAction();
}