clear method

  1. @override
Future<void> clear({
  1. bool focusBefore = true,
  2. bool blurAfter = true,
})
override

Note: all elements below here should remain asynchronous to allow component tests to function properly. Clears the text of this element, if possible (e.g. for text fields).

focusBefore indicates whether to focus this element before clearing. blurAfter indicates whether to blur this element after clearing.

Implementation

@override
Future<void> clear({bool focusBefore = true, bool blurAfter = true}) =>
    throw NullPageLoaderElementAccessException('clear', this);