lookupFunction<T extends Function, F extends Function> method Null safety

F lookupFunction<T extends Function, F extends Function>(
  1. String name
)

Helper that combines lookup and cast to a Dart function.

This simply calles DynamicLibrary.lookup and NativeFunctionPointer.asFunction internally, so see this two methods for additional insights.

Implementation

F lookupFunction<T extends Function, F extends Function>(String name) =>
    this.lookup<NativeFunction<T>>(name).asFunction<F>();