setContext method

Future setContext(
  1. String id
)

Implementation

Future setContext(String id) async {
  final context = await analytics?.state.context.state;

  if (context == null) {
  } else {
    context.device.adTrackingEnabled = true;
    context.device.advertisingId = id;

    analytics?.state.context.setState(context);
  }
}