setStarRatingDialogTexts static method

  1. @Deprecated('Use setStarRatingDialogTexts of CountlyConfig instead')
Future<String?> setStarRatingDialogTexts(
  1. String starRatingTextTitle,
  2. String starRatingTextMessage,
  3. String starRatingTextDismiss
)

Set's the text's for the different fields in the star rating dialog. Set value null if for some field you want to keep the old value String starRatingTextTitle - dialog's title text (Only for Android) String starRatingTextMessage - dialog's message text String starRatingTextDismiss - dialog's dismiss buttons text (Only for Android)

Implementation

@Deprecated('Use setStarRatingDialogTexts of CountlyConfig instead')
static Future<String?> setStarRatingDialogTexts(String starRatingTextTitle, String starRatingTextMessage, String starRatingTextDismiss) async {
  log('Calling "setStarRatingDialogTexts":[$starRatingTextTitle], message:[$starRatingTextMessage], dimiss:[$starRatingTextDismiss]');
  log('setStarRatingDialogTexts is deprecated, use setStarRatingDialogTexts of CountlyConfig instead', logLevel: LogLevel.WARNING);
  List<String> args = [];
  args.add(starRatingTextTitle);
  args.add(starRatingTextMessage);
  args.add(starRatingTextDismiss);

  final String? result = await _channel.invokeMethod('setStarRatingDialogTexts', <String, dynamic>{'data': json.encode(args)});

  return result;
}