land method Null safety
Triggers the DJI Drone Land action.
Commands the Drone to start landing.
Example:
Future<void> _land() async {
try {
await Dji.land;
developer.log(
'Land succeeded',
name: kLogKindDjiFlutterPlugin,
);
} on PlatformException catch (e) {
developer.log(
'Land PlatformException Error',
error: e,
name: kLogKindDjiFlutterPlugin,
);
} catch (e) {
developer.log(
'Land Error',
error: e,
name: kLogKindDjiFlutterPlugin,
);
}
}
Implementation
static Future<void> land() async {
await _api?.land();
}