Skip to content

mixpanelSDK.getPeople().set(String prop, dynamic to) - Unhandled Exception: Invalid argument: Instance of 'DateTime'  #132

Open
@MortadhaFadhlaoui

Description

@MortadhaFadhlaoui

Basically, this function accepts dynamic but it checks afterward if the passed props is a valid string _MixpanelHelper.isValidString(prop)

class _MixpanelHelper {
static isValidString(String input) {
// ignore: unnecessary_null_comparison
return input != null && input.isNotEmpty;
}
}

What results the error
Unhandled Exception: Invalid argument: Instance of 'DateTime'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions