getDeviceInformation method

  1. @override
Future<String?> getDeviceInformation()
override

Implementation

@override
Future<String?> getDeviceInformation() async {
  try {
    final version =
        await methodChannel.invokeMethod<String>('getDeviceInformation');
    return version;
  } catch (e) {
    debugPrint("Failed to get device information: $e");
    return null; // Or handle the error as appropriate for your app
  }
}