ContextState constructor

ContextState(
  1. Store store,
  2. Configuration config
)

Implementation

ContextState(Store store, Configuration config)
    : super("context", store, () async {
        return Context.fromNative(
            await AnalyticsPlatform.instance
                .getContext(collectDeviceId: config.collectDeviceId),
            UserTraits());
      });