keyPressed property Null safety

PdfJavaScriptAction? keyPressed

Gets or sets the JavaScript action to be performed when the user types a keystroke

Implementation

PdfJavaScriptAction? get keyPressed => _keyPressed;
void keyPressed=(PdfJavaScriptAction? value)

Implementation

set keyPressed(PdfJavaScriptAction? value) {
  if (value != null && _keyPressed != value) {
    _keyPressed = value;
    _dictionary!.setProperty(_DictionaryProperties.k, _keyPressed);
    _isChanged = true;
  }
}