getAllSecureRects static method

Future<List<Rectangle<double>>?> getAllSecureRects()

Implementation

static Future<List<Rectangle<double>>?> getAllSecureRects() async {
  _init();

  List<List<double>>? rawRectangles =
      await _channel?.invokeMethod('getAllSecureRects', <String, dynamic>{});

  if (rawRectangles != null) {
    return List<Rectangle<double>>.from(
        rawRectangles.map((e) => Rectangle<double>(e[0], e[1], e[2], e[3])));
  }

  return null;
}