Skip to content

LDClient.get() was called before init()!Β #58

@LokeshDevMaersk

Description

@LokeshDevMaersk

Still facing below issue on updating launchdarkly_flutter_client_sdk package to ^3.0.1. :

issueUnhandled Exception: MissingPluginException(No implementation found for method start on channel launchdarkly_flutter_client_sdk):

Below is the code for reference:

final LDConfig ldConfig =
LDConfigBuilder(myKey, AutoEnvAttributes.Enabled)
.build();

LDContextBuilder builder = LDContextBuilder();
const String contextKind = 'myUser';
builder.kind(contextKind, myUserId).anonymous(true);
await LDClient.start(ldConfig, builder.build())

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