visible property

bool visible

Gets the visibility of the page layer.

Implementation

bool get visible {
  if (_helper.dictionary != null &&
      _helper.dictionary!.containsKey(PdfDictionaryProperties.visible)) {
    _visible =
        (_helper.dictionary![PdfDictionaryProperties.visible]! as PdfBoolean)
            .value!;
  }
  return _visible;
}
void visible=(bool value)

Sets the visibility of the page layer.

Implementation

set visible(bool value) {
  _visible = value;
  if (_helper.dictionary != null) {
    _helper.dictionary![PdfDictionaryProperties.visible] = PdfBoolean(value);
  }
  _setVisibility(_visible);
}