systemInfo static method

Future<String> systemInfo(
  1. {MacOSInfoType type = MacOSInfoType.mini,
  2. MacOSInfoResultType resultType = MacOSInfoResultType.json}
)

Load System Info

Implementation

static Future<String> systemInfo({
  MacOSInfoType type = MacOSInfoType.mini,
  MacOSInfoResultType resultType = MacOSInfoResultType.json,
}) async {
  String info = await _channel.invokeMethod('getInfo', {
    "type": '$type'.replaceAll('MacOSInfoType.', ''),
    "resultType": '$resultType'.replaceAll('MacOSInfoResultType.', ''),
  });
  return info;
}