load function

Future load()

On supported platforms a DynamicLibrary of the opus audio codec is returned, whereas on not supported platforms an UnsupportedError is thrown.

On platforms where there is dart:ffi, the returned object is a dart:ffi DynamicLibrary, so it is safe to cast it.

On the web, where there is no dart:ffi, the returned object is a web_ffi DynamicLibrary, so it is safe to cast it.

Implementation

Future<dynamic> load() {
  return OpusFlutterPlatform.instance.load();
}