visible property

bool get 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;
}
set 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);
  }
}