asFunction<R extends Function> method

R asFunction <R extends Function>()

Convert to Dart function, automatically marshalling the arguments and return value.

Can only be called on Pointer<NativeFunction>. Does not accept dynamic invocations -- where the type of the receiver is dynamic.

Implementation

external R asFunction<@DartRepresentationOf("T") R extends Function>();