Skip to content

Type Cast Error in v. 1.0.0 #192

@JohannesMilke

Description

@JohannesMilke

I receive the following issue within the Reddit.createScriptInstance method while using version 1.0.0 with NullSafety. Before I was using another version without Null Safety and everything worked fine for me.

Error Message
type '_InternalLinkedHashMap<String, String?>' is not a subtype of type 'Map<String, String>?' in type cast

My implementation

await Reddit.createScriptInstance(
        clientId: clientId,
        clientSecret: secret,
        userAgent: 'ChangeMeClient/0.1 by Name',
        username: username,
        password: password,
      );

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