PdfRadioButtonListField constructor

PdfRadioButtonListField(
  1. PdfPage page,
  2. String name, {
  3. List<PdfRadioButtonListItem>? items,
  4. int? selectedIndex,
  5. String? selectedValue,
})

Initializes a new instance of the PdfRadioButtonListField class with the specific page, name and bounds.

Implementation

PdfRadioButtonListField(PdfPage page, String name,
    {List<PdfRadioButtonListItem>? items,
    int? selectedIndex,
    String? selectedValue}) {
  _helper = PdfRadioButtonListFieldHelper(this);
  _helper.internal(page, name, Rect.zero);
  _initValues(items, selectedIndex, selectedValue);
  _helper.flags.add(FieldFlags.radio);
  _helper.dictionary!.setProperty(
      PdfDictionaryProperties.ft, PdfName(PdfDictionaryProperties.btn));
}