content method

Panel content(
  1. String text
)

Sets the panel content from a string.

Multi-line strings are automatically split.

Implementation

Panel content(String text) {
  _content.clear();
  _content.addAll(text.split('\n'));
  return this;
}