onRelease method

dynamic onRelease(
  1. Function fn
)

Implementation

onRelease(Function fn) {
  on('release', (x) => fn());
}