toJsValue method

  1. @override
JSAny? toJsValue()

Converts the wrapper to a JavaScript interop value.

Implementation

@override
JSAny? toJsValue() => unsafe.object({
      if (watch != null) 'watch': unsafe.JsValue(unsafe.strings(watch!)),
      if (initial != null) 'initial': initial,
    });