connectDrone method Null safety

Future<void> connectDrone()

Connects with the DJI Drone.

The Remote Controller and the DJI Drone need to be turned on. The Remote Controller needs to be connected by USB cable to the mobile device running the app. Once connected, the DjiFlutterApi.setStatus() method is triggered and the status is changed to "Connected".

Example:

Implementation

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