fields property Null safety

PdfFormFieldCollection fields

Gets the fields.

Implementation

PdfFormFieldCollection get fields {
  if (_fields == null) {
    _fields = PdfFormFieldCollectionHelper.getCollection();
    PdfActionHelper.getHelper(this)
        .dictionary
        .setProperty(PdfDictionaryProperties.fields, _fields);
  }
  PdfFormFieldCollectionHelper.getHelper(_fields!).isAction = true;
  return _fields!;
}