Satellite constructor
Satellite({
- required String id,
- required GlobeCoordinates coordinates,
- double altitude = 0.1,
- String? label,
- Widget? labelBuilder(
- BuildContext context,
- Satellite satellite,
- bool isHovering,
- bool isVisible,
- bool isLabelVisible = false,
- Offset labelOffset = const Offset(0, 0),
- SatelliteStyle style = const SatelliteStyle(),
- TextStyle? labelTextStyle,
- SatelliteOrbit? orbit,
- VoidCallback? onTap,
- VoidCallback? onHover,
- 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();