MolecularViewer constructor

MolecularViewer({
  1. Key? key,
  2. required List<AtomObject> atoms,
  3. MolecularViewerController? controller,
})

A widget that displays a molecular structure. Strutegy: Atoms are drawn as circles with a shader that simulates a sphere.

Implementation

MolecularViewer(
    {super.key, required this.atoms, MolecularViewerController? controller})
    : controller = controller ?? MolecularViewerController();