getLibraryDirectory function Null safety

Future<String> getLibraryDirectory()

Implementation

Future<String> getLibraryDirectory() async {
  const platform = MethodChannel('samples.flutter.dev/facesdk');
  String libraryDirectory = "None";
  libraryDirectory = await platform.invokeMethod('getNativeLibDir');

  return libraryDirectory;
}