evaluationDetails method

  1. @Deprecated("use stringVariationDetails() instead")
Future<BKTEvaluation?> evaluationDetails(
  1. String featureId
)

Implementation

@Deprecated("use stringVariationDetails() instead")
Future<BKTEvaluation?> evaluationDetails(String featureId) async {
  return valueGuard<BKTEvaluation?>(
    await _invokeMethod(CallMethods.evaluationDetails.name, argument: {
      CallMethodParams.featureId: featureId,
    }),
    customMapping: (response) {
      return BKTEvaluation(
        id: response['id'],
        featureId: response['featureId'],
        featureVersion: response['featureVersion'],
        userId: response['userId'],
        variationId: response['variationId'],
        variationName: response['variationName'],
        variationValue: response['variationValue'],
        reason: response['reason'],
      );
    },
  ).onError((error, stackTrace) {
    /// Feature flag not found.
    debugPrint("get evaluationDetails fail: ${error?.toString()}");
    return null;
  });
}