getDrawerColor static method

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

Implementation

static Color getDrawerColor(
  BuildContext context, {
  UpStyle? override,
  UpStyle? style,
  UpColorType? colorType,
}) {
  return override?.drawerColor ??
      style?.drawerColor ??
      getStyleByType(UpConfig.of(context).theme, colorType).drawerColor ??
      UpConfig.of(context).theme.baseColor.shade50;
}