getSize method
Implementation
@override
Future<Size?> getSize() async {
final size = await methodChannel
.invokeMethod<Map<Object?, Object?>>('getSize');
return switch (size) {
{"Width": 0 as num, "Height": 0 as num} => null,
{"Width": final num width, "Height": final num height} =>
Size(width.toDouble(), height.toDouble()),
_ => null
};
}