getSystemInfo method
Gets system information and device capabilities for diagnostics.
Implementation
@override
Future<Map<String, dynamic>?> getSystemInfo() async {
try {
final result = await methodChannel.invokeMethod<Map<Object?, Object?>>(
'getSystemInfo',
);
if (result != null) {
return Map<String, dynamic>.from(result);
}
return null;
} on PlatformException catch (e) {
debugPrint('Error getting system information: ${e.message}');
return null;
}
}