decodePhrase function

Future<String> decodePhrase(
  1. Map<String, dynamic> keyStore,
  2. String psw
)

Implementation

Future<String> decodePhrase(
  Map<String, dynamic> keyStore,
  String psw,
) async {
  final response = ReceivePort();
  try {
    await Isolate.spawn(
      _decodePhrase,
      [response.sendPort, keyStore, psw],
    );

    return (await response.first) as String;
  } catch (e) {
    rethrow;
  }
}