addSatellite method

void addSatellite(
  1. Satellite satellite
)

Adds a satellite to the globe.

The satellite parameter represents the satellite to be added to the globe. Satellites can be stationary (geostationary) or orbiting with defined orbital parameters.

Example usage:

// Add a geostationary satellite
controller.addSatellite(Satellite(
  id: 'geo-sat-1',
  coordinates: GlobeCoordinates(0, -75.2),
  altitude: 0.35,
  label: 'GOES-16',
  style: SatelliteStyle(size: 6, color: Colors.yellow),
));

// Add an orbiting satellite (ISS-like)
controller.addSatellite(Satellite(
  id: 'iss',
  coordinates: GlobeCoordinates(0, 0),
  altitude: 0.06,
  label: 'ISS',
  orbit: SatelliteOrbit(
    inclination: 51.6,
    period: Duration(seconds: 30), // Faster for demo
  ),
  style: SatelliteStyle(
    size: 8,
    color: Colors.white,
    showOrbitPath: true,
  ),
));

Implementation

void addSatellite(Satellite satellite) {
  satellites.add(satellite);
  notifyListeners();
}