mixpanel-flutter icon indicating copy to clipboard operation
mixpanel-flutter copied to clipboard

Error on call .track() Invalid argument: Instance of 'Object'

Open devinyonas opened this issue 1 year ago • 0 comments

Hi,

When i call:

await _mixpanel.track(
        name,
        properties: {'relationship': Relationship.mother},
      );

I got error: Invalid argument: Instance of 'Relationship'

Relationship is an enum, ex:

enum Relationship {
  mother,
  father;
 }

i see that properties accept Map<String, dynamic>? but I'm not sure why its returning Invalid-argument

Is .track() properties doesn't support custom object?

devinyonas avatar Aug 13 '24 17:08 devinyonas