getAllSecureRects static method
Implementation
static Future<List<Rectangle<double>>?> getAllSecureRects() async {
_init();
dynamic rawRectangles =
await _channel?.invokeMethod('getAllSecureRects', <String, dynamic>{});
if (rawRectangles != null) {
List<Object?> rectangles = rawRectangles as List<Object?>;
return List<Rectangle<double>>.from(rectangles.map((e) {
dynamic item = e;
if (item != null) {
double x = item[0] as double;
double y = item[1] as double;
double w = item[2] as double;
double h = item[3] as double;
return Rectangle<double>(x, y, w, h);
}
return Rectangle<double>(0, 0, 0, 0);
}));
}
return null;
}