onValueChanged static method

void onValueChanged(
  1. String name,
  2. CleverTapOnValueChangedHandler handler
)

Implementation

static void onValueChanged(
    String name, CleverTapOnValueChangedHandler handler) {
  onValueChangedImpl(name, allowInterop((object) {
    var dartObject = js_util.dartify(object);
    var convertedMap = (dartObject as Map)
        .map((key, value) => MapEntry(key.toString(), value as dynamic));
    handler(convertedMap.cast<String, dynamic>());
  }));
}