getPlatformModel method

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

Fetches the native device model identifier.

Example: "Pixel 7 Pro" or "iPhone14,5". Returns a Future completing with the device model string.

Implementation

@override
Future<String> getPlatformModel() async {
  final String model = await methodChannel.invokeMethod('getPlatformModel') ??
      'Unknown Device Model';
  return model;
}