MoleculeVisualizer class

Provides utilities for visualizing chemical structures from SMILES notation

Constructors

MoleculeVisualizer()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fetchMoleculeImage(String smiles, {int width = defaultWidth, int height = defaultHeight}) Future<Uint8List>
Fetches a PNG image of the molecule from PubChem
fetchMoleculeSvg(String smiles) Future<String>
Fetches an SVG representation of the molecule from PubChem
getMoleculeDataUrl(String smiles, {int width = defaultWidth, int height = defaultHeight}) Future<String>
Returns the molecule structure as a data URL
getPubChemVisualizationUrl(String smiles) String
Generates a URL that displays the molecule visualization in PubChem

Constants

defaultHeight → const int
defaultWidth → const int
Default image size for visualizations
pubchemVisualizationUrl → const String
Base URL for PubChem's visualization services