onCleared property Null safety

VoidCallback? onCleared
final

Called when the keyboard goes away.

To use the methods on this API that send fake keyboard messages (such as updateEditingValue, enterText, or receiveAction), the keyboard must first be requested, e.g. using WidgetTester.showKeyboard.

Implementation

final VoidCallback? onCleared;