BaseCNToolbar.search constructor

BaseCNToolbar.search({
  1. Key? key,
  2. List<CNToolbarAction>? leading,
  3. List<CNToolbarAction>? trailing,
  4. required CNSearchConfig searchConfig,
  5. CNSymbol? contextIcon,
  6. Color? tint,
  7. bool transparent = false,
  8. double? height,
  9. double? pillHeight,
  10. Color? backgroundColor,
  11. BaseParam? baseParam,
})

Factory constructor for search-enabled toolbar

Implementation

BaseCNToolbar.search({
  Key? key,
  List<CNToolbarAction>? leading,
  List<CNToolbarAction>? trailing,
  required CNSearchConfig searchConfig,
  CNSymbol? contextIcon,
  Color? tint,
  bool transparent = false,
  double? height,
  double? pillHeight,
  Color? backgroundColor,
  BaseParam? baseParam,
}) : super.search(
       key: key,
       leading: _convertActions(leading),
       trailing: _convertActions(trailing),
       searchConfig: searchConfig,
       contextIcon: contextIcon,
       tint: tint,
       transparent: transparent,
       height: height,
       pillHeight: pillHeight,
       backgroundColor: backgroundColor,
       baseParam: baseParam,
     );