getScreenSize method

  1. @override
Future<Size> getScreenSize(
  1. BuildContext? context
)
override

Implementation

@override
Future<Size> getScreenSize(BuildContext? context) async {
  var width = html.window.screen?.width ?? 0;
  var height = html.window.screen?.height ?? 0;
  return Size(width.toDouble(), height.toDouble());
}