disconnectDrone method Null safety

Future<void> disconnectDrone()

Disconnects from the DJI Drone.

Once disconnected, the DjiFlutterApi.setStatus() method is triggered and the status is changed to "Disconnected".

Implementation

static Future<void> disconnectDrone() async {
  await _api?.disconnectDrone();
}