customEventWithData static method

void customEventWithData(
  1. Map event
)

Implementation

static void customEventWithData(Map event){
  try{
    for (var entry in event.entries) {
      // print('${entry.key}: ${entry.value}');
      obj[entry.key] = entry.value.toString();
    }
    sdk.callMethod('customEvent', [obj]);
  }catch(e){
    debugPrint("$e");
  }
}