Atom constructor

Atom({
  1. required String elementName,
  2. required Vector3 position,
})

Implementation

Atom({required String elementName, required Vector3 position})
    : super((atoms[elementName]?.radius ?? 1) * 1.2, position,
          color: atoms[elementName]?.color ?? const Color(0xff000000));