Satellite constructor

Satellite({
  1. required String id,
  2. required GlobeCoordinates coordinates,
  3. double altitude = 0.1,
  4. String? label,
  5. Widget? labelBuilder(
    1. BuildContext context,
    2. Satellite satellite,
    3. bool isHovering,
    4. bool isVisible,
    )?,
  6. bool isLabelVisible = false,
  7. Offset labelOffset = const Offset(0, 0),
  8. SatelliteStyle style = const SatelliteStyle(),
  9. TextStyle? labelTextStyle,
  10. SatelliteOrbit? orbit,
  11. VoidCallback? onTap,
  12. VoidCallback? onHover,
  13. DateTime? referenceTime,
})

Implementation

Satellite({
  required this.id,
  required this.coordinates,
  this.altitude = 0.1,
  this.label,
  this.labelBuilder,
  this.isLabelVisible = false,
  this.labelOffset = const Offset(0, 0),
  this.style = const SatelliteStyle(),
  this.labelTextStyle,
  this.orbit,
  this.onTap,
  this.onHover,
  DateTime? referenceTime,
}) : referenceTime = referenceTime ?? DateTime.now();