cpuName property Null safety

Future<String> cpuName

Future method to get CPU name of the device

Implementation

static Future<String> get cpuName async {
  final cpuName = await _channel.invokeMethod("getCPUType");
  return cpuName == null ? "" : cpuName;
}