validate method

Future<String> validate()

Call this method to do a local validation of your ContextSDK setup

Implementation

Future<String> validate() {
  if (!_contextId.isValid()) {
    return Future.value(
        '[ContextSDK] Invalid context received, please contact support@contextsdk.com');
  }

  return ContextSdkPlatform.instance.contextValidate(_contextId.contextId);
}