PdfRadioButtonListItem constructor

PdfRadioButtonListItem(
  1. String value,
  2. Rect bounds, {
  3. PdfCheckBoxStyle style = PdfCheckBoxStyle.circle,
  4. PdfColor? borderColor,
  5. PdfColor? backColor,
  6. PdfColor? foreColor,
  7. int? borderWidth,
  8. PdfHighlightMode highlightMode = PdfHighlightMode.invert,
  9. PdfBorderStyle borderStyle = PdfBorderStyle.solid,
  10. String? tooltip,
})

Initializes a instance of the PdfRadioButtonListItem class with the specific value and bounds.

Implementation

PdfRadioButtonListItem(
  String value,
  Rect bounds, {
  PdfCheckBoxStyle style = PdfCheckBoxStyle.circle,
  PdfColor? borderColor,
  PdfColor? backColor,
  PdfColor? foreColor,
  int? borderWidth,
  PdfHighlightMode highlightMode = PdfHighlightMode.invert,
  PdfBorderStyle borderStyle = PdfBorderStyle.solid,
  String? tooltip,
}) {
  _radioButtonListItemHelper = PdfRadioButtonListItemHelper(this);
  _radioButtonListItemHelper.initialize(
    null,
    null,
    bounds,
    style: style,
    borderColor: borderColor,
    backColor: backColor,
    foreColor: foreColor,
    borderWidth: borderWidth,
    highlightMode: highlightMode,
    borderStyle: borderStyle,
    tooltip: tooltip,
  );
  this.value = value;
  _radioButtonListItemHelper.dictionary!.beginSave =
      _radioButtonListItemHelper.dictionaryBeginSave;
  WidgetAnnotationHelper.getHelper(_radioButtonListItemHelper.widget!)
      .beginSave = _radioButtonListItemHelper._widgetSave;
  style = PdfCheckBoxStyle.circle;
}