getRotation method

Future<double> getRotation(
  1. String id
)

Get current rotation.

Implementation

Future<double> getRotation(String id) async {
  final result = await send<double>('getRotation', windowId: id);
  if (result == null) {
    debugPrint('[TransformClient] getRotation($id) returned null — using fallback');
    return 0.0;
  }
  return result;
}