dart / 2 / dart-html / crypto / supported.html

supported property

bool supported

Checks if this type is supported on the current platform.

Implementation

static bool get supported =>
    JS('bool', '!!(window.crypto && window.crypto.getRandomValues)');

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-html/Crypto/supported.html