getResolution method

  1. @override
Future<Size?> getResolution()
override

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());
}