customEventWithData static method

void customEventWithData(
  1. Map event
)

Implementation

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