JsFunction<T>.ins constructor

JsFunction<T>.ins(
  1. dynamic func(
    1. T obj,
    2. List argv
    )
)

New a instance function

Implementation

JsFunction.ins(Function(T obj, List argv) func) : isStatic = false {
  function = (obj, argv) => func(obj!, argv);
}