takeOff static method
Triggers the DJI Drone Take Off action.
Commands the Drone to start take-off.
Example:
Future<void> _takeOff() async {
try {
await Dji.takeOff;
developer.log(
'Takeoff succeeded',
name: kLogKindDjiFlutterPlugin,
);
} on PlatformException catch (e) {
developer.log(
'Takeoff PlatformException Error',
error: e,
name: kLogKindDjiFlutterPlugin,
);
} catch (e) {
developer.log(
'Takeoff Error',
error: e,
name: kLogKindDjiFlutterPlugin,
);
}
}
Implementation
static Future<void> takeOff() async {
await _api?.takeOff();
}