isCupertinoProtectedDataAvailable method
iOS and macOS only feature.
On macOS this is only available on macOS 12 or newer. On older versions always returns true. On all unsupported platforms returns null
iOS: https://developer.apple.com/documentation/uikit/uiapplication/1622925-isprotecteddataavailable macOS: https://developer.apple.com/documentation/appkit/nsapplication/3752992-isprotecteddataavailable
Implementation
Future<bool?> isCupertinoProtectedDataAvailable() async =>
_platform is MethodChannelFlutterSecureStorage
? await (_platform as MethodChannelFlutterSecureStorage)
.isCupertinoProtectedDataAvailable()
: null;