MolecularPainter constructor
MolecularPainter({
- required MolecularViewerController controller,
- 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);
}
}