getSize method

Future<Size> getSize(
  1. String id
)

Get current size.

Implementation

Future<Size> getSize(String id) async {
  final result = await sendForMap('getSize', windowId: id);
  if (result == null) {
    debugPrint('[FrameClient] getSize($id) returned null — using fallback');
    return Size.zero;
  }
  return Size(
    (result['width'] as num).toDouble(),
    (result['height'] as num).toDouble(),
  );
}