create static method
Implementation
static Future<DllHandler> create() async {
String? libraryPath = await WebFrameworkFlutterApiPlatform.instance.getLibraryPath();
String? assetsPath = await WebFrameworkFlutterApiPlatform.instance.getAssetsPath();
if (libraryPath == null) {
throw Exception("Can't get library path");
}
if (assetsPath == null) {
throw Exception("Can't get assets path");
}
return DllHandler._constructor(DynamicLibrary.open(libraryPath), libraryPath, assetsPath);
}