getDeviceInfo method
Implementation
@override
Future<Map<String, dynamic>?> getDeviceInfo() async {
Map<String, String> browserInfo = <String, String>{};
browserInfo["name"] = browser.name;
browserInfo["version"] = browser.version.toString();
Map<String, String> osInfo = <String, String>{};
osInfo["name"] = operatingSystem.name;
osInfo["type"] = html.window.navigator.platform!;
Map<String, dynamic> data = <String, dynamic>{};
data["browser"] = browserInfo;
data["os"] = osInfo;
return data;
}