79118157

Date: 2024-10-23 13:41:08
Score: 1.5
Natty:
Report link

Figured it out! For js_interop: Instead of "Function," use "JSFunction." Then instead of "allowInterop" use ".toJS"

@JS('dartCtrlWheelEventHandler') external set dartCtrlWheelEventHandler(JSFunction f);

dartCtrlWheelEventHandler = _ctrlWheelEventHandler.toJS; 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: RJJ