DGHubSearchAppBar constructor

const DGHubSearchAppBar({
  1. double? height,
  2. Color? backgroundColor,
  3. Color? backgroundColorDarkTheme,
  4. Color? cardColor,
  5. Color? cardColorDarkTheme,
  6. Color? iconColor,
  7. Color? iconColorDarkTheme,
  8. Color? labelColor,
  9. Color? labelColorDarkTheme,
  10. DGHubSearchAppBarType type = DGHubSearchAppBarType.defaultDesign,
  11. required List<DGHubAppBarIcon> items,
  12. String? searchLabel,
  13. dynamic backOnTap()?,
  14. required dynamic searchResult(
    1. String result
    ),
  15. bool enabledBottomLine = true,
  16. Key? key,
})

Implementation

const DGHubSearchAppBar(
    {this.height,
    this.backgroundColor,
    this.backgroundColorDarkTheme,
    this.cardColor,
    this.cardColorDarkTheme,
    this.iconColor,
    this.iconColorDarkTheme,
    this.labelColor,
    this.labelColorDarkTheme,
    this.type = DGHubSearchAppBarType.defaultDesign,
    required this.items,
    this.searchLabel,
    this.backOnTap,
    required this.searchResult,
    this.enabledBottomLine = true,
    super.key});