on method

dynamic on(
  1. String type,
  2. dynamic onResponse(
    1. dynamic
    )
)

Implementation

external on(String type, Function(dynamic) onResponse);