PdfRadioButtonListField constructor Null safety

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})
    : super(page, name, Rect.zero) {
  _initValues(items, selectedIndex, selectedValue);
  _flags.add(_FieldFlags.radio);
  _dictionary.setProperty(
      _DictionaryProperties.ft, _PdfName(_DictionaryProperties.btn));
}