getResolution method
Implementation
@override
Future<Size?> getResolution() async {
final width = window.screen?.width;
final height = window.screen?.height;
if (width == null || height == null) return null;
return Size(width.toDouble(), height.toDouble());
}