SearchToClear constructor
const
SearchToClear({})
Creates a Widget that animates between a search and a clear icon.
Implementation
const SearchToClear({
Key? key,
required this.isEmpty,
required this.onTap,
this.duration = const Duration(milliseconds: 500),
this.color,
this.size = 24.0,
this.searchButtonSemanticLabel = 'Search',
this.clearButtonSemanticLabel = 'Clear',
}) : super(key: key);