BottomPickerButton constructor

BottomPickerButton({
  1. Key? key,
  2. required Function onClick,
  3. required Color iconColor,
  4. String? text,
  5. TextStyle? textStyle,
  6. bool displayIcon = true,
  7. List<Color> gradientColors = blueThemeColor,
  8. Color? solidColor,
})

Implementation

BottomPickerButton({
  Key? key,
  required this.onClick,
  required this.iconColor,
  this.text,
  this.textStyle,
  this.displayIcon = true,
  this.gradientColors = blueThemeColor,
  this.solidColor,
}) : super(key: key) {
  if (!displayIcon) {
    assert(text != null);
  }
}