addEarthToScene method

Future<void> addEarthToScene({
  1. double? initialScale,
  2. int? backgroundColor,
  3. double? x,
  4. double? y,
  5. double? z,
})

Implementation

Future<void> addEarthToScene({
  double? initialScale,
  int? backgroundColor,
  double? x,
  double? y,
  double? z,
}) async {
  await _channel.invokeMethod("add_earth_to_scene", {
    "initialScale": initialScale,
    if (backgroundColor != null) "backgroundColor": backgroundColor.toInt(),
    "x": x ?? 0,
    "y": y ?? 0,
    "z": z ?? 0,
  });
}