MolecularPainter constructor

MolecularPainter({
  1. required MolecularViewerController controller,
  2. required List<AtomObject> atoms,
})

Implementation

MolecularPainter({required this.controller, required this.atoms})
    : super(repaint: controller) {
  controller.addListener(() {
    _isDirty = true;
  });

  for (var atom in atoms) {
    _bounds.hullPoint(atom.position);
  }
}