addComponent method

void addComponent(
  1. String caption,
  2. Component component
)

Implementation

void addComponent(String caption, Component component) {
  final simpleLabel = SimpleLabel()
    ..caption = caption
    ..width = _labelsWidth;
  final row = Panel()
    ..stride = _formStride
    ..add(simpleLabel)
    ..add(component);
  rows.add(row);
  add(row);
}