FlutterEarthGlobeController constructor

FlutterEarthGlobeController({
  1. ImageProvider<Object>? surface,
  2. ImageProvider<Object>? nightSurface,
  3. ImageProvider<Object>? background,
  4. double rotationSpeed = 0.2,
  5. bool isZoomEnabled = true,
  6. double zoom = 1,
  7. double maxZoom = 1.6,
  8. double minZoom = 0.1,
  9. bool isRotating = false,
  10. bool isBackgroundFollowingSphereRotation = false,
  11. ImageConfiguration surfaceConfiguration = const ImageConfiguration(),
  12. ImageConfiguration nightSurfaceConfiguration = const ImageConfiguration(),
  13. ImageConfiguration backgroundConfiguration = const ImageConfiguration(),
  14. SphereStyle sphereStyle = const SphereStyle(),
  15. bool isDayNightCycleEnabled = false,
  16. double sunLongitude = 0.0,
  17. double sunLatitude = 0.0,
  18. double dayNightBlendFactor = 0.15,
  19. bool useRealTimeSunPosition = false,
})

Implementation

FlutterEarthGlobeController({
  ImageProvider? surface,
  ImageProvider? nightSurface,
  ImageProvider? background,
  this.rotationSpeed = 0.2,
  this.isZoomEnabled = true,
  this.zoom = 1,
  this.maxZoom = 1.6,
  this.minZoom = 0.1,
  bool isRotating = false,
  this.isBackgroundFollowingSphereRotation = false,
  this.surfaceConfiguration = const ImageConfiguration(),
  this.nightSurfaceConfiguration = const ImageConfiguration(),
  this.backgroundConfiguration = const ImageConfiguration(),
  this.sphereStyle = const SphereStyle(),
  this.isDayNightCycleEnabled = false,
  this.sunLongitude = 0.0,
  this.sunLatitude = 0.0,
  this.dayNightBlendFactor = 0.15,
  this.useRealTimeSunPosition = false,
}) {
  assert(minZoom < maxZoom);
  assert(zoom >= minZoom && zoom <= maxZoom);
  _isRotating = isRotating;
  if (surface != null) {
    loadSurface(surface);
  }

  if (nightSurface != null) {
    loadNightSurface(nightSurface);
  }

  if (background != null) {
    loadBackground(background);
  }
}