CDropdownStyle.filled constructor

  1. @override
CDropdownStyle.filled({
  1. Color? backgroundColor,
  2. Color? foregroundColor,
  3. LinearGradient? gradient,
  4. TextStyle? itemsTextStyle,
  5. TextStyle? textStyle,
  6. bool? itemsFilled,
})

Creates a filled dropdown style.

Implementation

@override
factory CDropdownStyle.filled({
  Color? backgroundColor,
  Color? foregroundColor,
  LinearGradient? gradient,
  TextStyle? itemsTextStyle,
  TextStyle? textStyle,
  bool? itemsFilled,
}) {
  return CDropdownStyle(
    backgroundColor: backgroundColor,
    foregroundColor: foregroundColor,
    gradient: gradient,
    filled: true,
    itemsTextStyle: itemsTextStyle,
    textStyle: textStyle,
    itemsFilled: itemsFilled,
  );
}