getKrakenTemporaryPath function
Implementation
Future<String> getKrakenTemporaryPath() async {
if (_krakenTemporaryPath == null) {
String? temporaryDirectory = await getKrakenMethodChannel()
.invokeMethod<String>('getTemporaryDirectory');
if (temporaryDirectory == null) {
throw FlutterError('Can\'t get temporary directory from native side.');
}
_krakenTemporaryPath = temporaryDirectory;
}
return _krakenTemporaryPath!;
}