MenuColors constructor

MenuColors({
  1. Color? backgroundColor,
  2. Color? searchBarBackgroundColor,
  3. Color? searchBarBorderColor,
  4. Color? searchBarEnabledColor,
  5. Color? searchBarFocusedColor,
  6. Color? buttonColor,
  7. Color? iconHoveredBackgroundColor,
  8. Color? menuSelectedIconColor,
  9. Color? indicatorColor,
  10. Color? iconBackgroundColor,
})

Implementation

MenuColors({
  Color? backgroundColor,
  Color? searchBarBackgroundColor,
  Color? searchBarBorderColor,
  Color? searchBarEnabledColor,
  Color? searchBarFocusedColor,
  Color? buttonColor,
  Color? iconHoveredBackgroundColor,
  Color? menuSelectedIconColor,
  Color? indicatorColor,
  this.iconBackgroundColor,
}) {
  this.backgroundColor = backgroundColor ?? const Color(0xFFf6f5f3);
  this.searchBarBackgroundColor = searchBarBackgroundColor ?? Colors.white;
  this.searchBarBorderColor = searchBarBorderColor ?? const Color(0xFFe6e5e2);
  this.searchBarEnabledColor = searchBarEnabledColor ?? this.backgroundColor;
  this.searchBarFocusedColor =
      searchBarFocusedColor ?? const Color(0xFF00a884);
  this.buttonColor = buttonColor ?? const Color(0xFF909090);
  this.iconHoveredBackgroundColor =
      iconHoveredBackgroundColor ?? const Color.fromARGB(255, 224, 224, 224);
  this.menuSelectedIconColor =
      menuSelectedIconColor ?? const Color(0xFF1d6e5f);
  this.indicatorColor = indicatorColor ?? Colors.transparent;
}