getFlip method

Future<({bool horizontal, bool vertical})> getFlip(
  1. String id
)

Get flip state.

Implementation

Future<({bool horizontal, bool vertical})> getFlip(String id) async {
  final result = await sendForMap('getFlip', windowId: id);
  if (result == null) {
    debugPrint('[TransformClient] getFlip($id) returned null — using fallback');
    return (horizontal: false, vertical: false);
  }
  return (
    horizontal: result['horizontal'] as bool? ?? false,
    vertical: result['vertical'] as bool? ?? false,
  );
}