getNames method

Future<String> getNames()

Get all marketing names of the device. If multiple names match the model, those are concatenated and separated by " / ". Lookup results are cached. For web browsers the browser name delivered by device_info_plus is forwarded.

Implementation

Future<String> getNames() async {
  deviceNames ??= await lookupDevice(PlatformInfo(), DeviceInfo());
  return deviceNames!;
}