isFeedbackValid static method

bool isFeedbackValid({
  1. required String appId,
  2. required String message,
})

Implementation

static bool isFeedbackValid({required String appId, required String message}) {
  if (appId.trim().isEmpty) {
    return false;
  }

  final msg = message.trim();
  if (msg.length <= 5) {
    return false;
  }
  if (msg.length >= 2000) {
    return false;
  }

  return true;
}