AndroidInfo constructor

AndroidInfo({
  1. required String applicationId,
  2. required List<String> sha256,
})

Android-specific data

Implementation

AndroidInfo({required this.applicationId, required this.sha256}) {
  if (applicationId.trim().isEmpty) throw Exception('applicationId required');
  for (int i = 0; i < sha256.length; i++) {
    if (!AppUtils().isValidSHA256(sha256[i])) {
      throw Exception('Invalid SHA-256 key: ${sha256[i]}');
    }
  }
}