nativeGetPropertiesAndMethods method
Implementation
void nativeGetPropertiesAndMethods(Pointer<NativeValue> data) async {
assert(pointer != null);
List<String> properties = _properties.keys.toList(growable: false);
List<String> syncMethods = [];
List<String> asyncMethods = [];
_methods.forEach((key, method) {
if (method is BindingObjectMethodSync) {
syncMethods.add(key);
} else if (method is AsyncBindingObjectMethod) {
asyncMethods.add(key);
}
});
toNativeValue(data.elementAt(0), properties);
toNativeValue(data.elementAt(1), syncMethods);
toNativeValue(data.elementAt(2), asyncMethods);
}