getPlatformInfo method

Future<PlatformInfo> getPlatformInfo()

Returns information about the current platform. returns Promise that resolves with information about the current platform.

Implementation

Future<PlatformInfo> getPlatformInfo() async {
  var $res = await $js.chrome.runtime.getPlatformInfo().toDart;
  return PlatformInfo.fromJS($res);
}