FlutterCallbackCache
@interface FlutterCallbackCache : NSObject
The cache containing callback information for spawning a
FlutterHeadlessDartRunner
.
-
Returns the callback information for the given callback handle. This callback information can be used when spawning a
FlutterHeadlessDartRunner
.Declaration
Objective-C
+ (FlutterCallbackInformation *)lookupCallbackInformation:(int64_t)handle;
Parameters
handle
The handle for a callback, provided by the Dart method
PluginUtilities.getCallbackHandle
.Return Value
A
FlutterCallbackInformation
object which contains the name of the callback, the name of the class in which the callback is defined, and the path of the library which contains the callback. If the provided handle is invalid, nil is returned.