removeAll method

Future<void> removeAll()

Remove every applied adapter.

Throws SDKException when the removal fails.

Implementation

Future<void> removeAll() async {
  if (!DartBridge.isInitialized) {
    throw SDKException.notInitialized();
  }
  final state = await RunAnywhereLoRACapability.shared.remove(
    LoraRemoveRequest(clearAll: true),
  );
  if (state.hasError()) {
    throw SDKException.invalidState(state.error.message);
  }
}