Rect.fromLTRB constructor

Rect.fromLTRB(
  1. double left,
  2. double top,
  3. double right,
  4. double bottom,
)

Implementation

factory Rect.fromLTRB(double left, double top, double right, double bottom) {
  final ptr = calloc<c.mnn_cv_rect_t>()
    ..ref.left = left
    ..ref.top = top
    ..ref.right = right
    ..ref.bottom = bottom;
  return Rect.fromPointer(ptr);
}