getDrawerHeaderColor static method

Color getDrawerHeaderColor(
  1. BuildContext context, {
  2. UpStyle? override,
  3. UpStyle? style,
  4. UpColorType? colorType,
})

Implementation

static Color getDrawerHeaderColor(
  BuildContext context, {
  UpStyle? override,
  UpStyle? style,
  UpColorType? colorType,
}) {
  return override?.drawerHeaderColor ??
      style?.drawerHeaderColor ??
      getStyleByType(UpConfig.of(context).theme, colorType)
          .drawerHeaderColor ??
      UpConfig.of(context).theme.baseColor.shade200;
}