From c96b1f469fbdc0ae1770fa5b5c4d390336dfd1ce Mon Sep 17 00:00:00 2001 From: Dillon Nys Date: Wed, 16 Aug 2023 16:02:16 -0700 Subject: [PATCH] chore(secure_storage): Fix analysis issue --- .../lib/src/ffi/win32/data_protection.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/win32/data_protection.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/win32/data_protection.dart index 4257dc754c..2dddf23138 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/win32/data_protection.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/win32/data_protection.dart @@ -14,7 +14,7 @@ import 'package:win32/win32.dart' /// Encrypts the provided string as a [Uint8List]. Uint8List encryptString(String value) { - final encodedValue = utf8.encode(value) as Uint8List; + final encodedValue = const Utf8Encoder().convert(value); return encrypt(encodedValue); }