getWebFTemporaryPath function

Future<String> getWebFTemporaryPath()

Implementation

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