BasePopupButton constructor

const BasePopupButton({
  1. Key? key,
  2. required List<String> options,
  3. int selectedIndex = 0,
  4. required void onSelected(
    1. int
    ),
  5. Color? tint,
  6. double height = 32.0,
  7. double? width,
  8. CNButtonStyle buttonStyle = CNButtonStyle.plain,
  9. String? prefix,
  10. List<int> dividerIndices = const [],
  11. BaseParam? baseParam,
})

Creates a base popup button wrapper

Implementation

const BasePopupButton({
  Key? key,
  required this.options,
  this.selectedIndex = 0,
  required this.onSelected,
  this.tint,
  this.height = 32.0,
  this.width,
  this.buttonStyle = CNButtonStyle.plain,
  this.prefix,
  this.dividerIndices = const [],
  BaseParam? baseParam,
}) : super(key: key, baseParam: baseParam);