CNTabBarSearchItem constructor

const CNTabBarSearchItem({
  1. CNSymbol? icon,
  2. CNSymbol? activeIcon,
  3. String label = 'Search',
  4. String placeholder = 'Search',
  5. ValueChanged<String>? onSearchChanged,
  6. ValueChanged<String>? onSearchSubmit,
  7. ValueChanged<bool>? onSearchActiveChanged,
  8. bool automaticallyActivatesSearch = true,
  9. CNTabBarSearchStyle style = const CNTabBarSearchStyle(),
})

Creates a search tab configuration.

Implementation

const CNTabBarSearchItem({
  this.icon,
  this.activeIcon,
  this.label = 'Search',
  this.placeholder = 'Search',
  this.onSearchChanged,
  this.onSearchSubmit,
  this.onSearchActiveChanged,
  this.automaticallyActivatesSearch = true,
  this.style = const CNTabBarSearchStyle(),
});