encryptContent static method

Future<List<int>?> encryptContent(
  1. CacheOptions options,
  2. List<int>? bytes
)

Implementation

static Future<List<int>?> encryptContent(
  CacheOptions options,
  List<int>? bytes,
) {
  final checkedCipher = options.cipher;
  if (bytes != null && checkedCipher != null) {
    return checkedCipher.encrypt(bytes);
  }
  return Future.value(bytes);
}