getHasPasscode method
Checks if device has passcode/lock screen protection.
Returns true if device has PIN, pattern, password or biometric lock. Returns false if device has no lock screen protection.
Implementation
@override
Future<bool> getHasPasscode() async {
return await methodChannel.invokeMethod<bool?>('getHasPasscode') ?? false;
}