onCancel property

VoidCallback? onCancel
final

With it, the leading slot is a back arrow that cancels the search.

Implementation

final VoidCallback? onCancel;