addContainerFromExternalStorage method
Добавить внешний контейнер в хранилище
Implementation
@override
Future<Certificate> addContainerFromExternalStorage({
required String storageName,
required String password,
String? newPassword,
}) async {
String response = await methodChannel.invokeMethod(
"addFromExternalStorage",
{
"storageName": storageName,
"password": password,
"newPassword": newPassword,
},
);
Map<String, dynamic> map = json.decode(response) as Map<String, dynamic>;
final certificate = Certificate.fromMap(map["certificate"]);
return certificate;
}