getDeviceName method

  1. @override
Future<String> getDeviceName()
override

Implementation

@override
Future<String> getDeviceName() {
  DeviceInfoPlugin deviceInfoPlugin = DeviceInfoPlugin();

  Future<String> deviceName = Platform.isAndroid
      ? _getAndroidDeviceName(deviceInfoPlugin)
      : _getIosDeviceName(deviceInfoPlugin);

  return deviceName;
}