isSecureContext method Null safety

Future<bool> isSecureContext()

Indicates whether the webpage context is capable of using features that require secure contexts. This is implemented using Javascript (see window.isSecureContext).

NOTE for Android: available Android 21.0+.

Implementation

Future<bool> isSecureContext() async {
  Map<String, dynamic> args = <String, dynamic>{};
  return await _channel.invokeMethod('isSecureContext', args);
}