Rectangle constructor

Rectangle(
  1. Map<String, dynamic> nativeRect
)

Represents rectangle location of each document field

Implementation

Rectangle(Map<String, dynamic> nativeRect) {
  x = nativeRect['x'] != null ? nativeRect['x'] * 1.0 : null;
  y = nativeRect['y'] != null ? nativeRect['y'] * 1.0 : null;
  width = nativeRect['width'] != null ? nativeRect['width'] * 1.0 : null;
  height = nativeRect['height'] != null ? nativeRect['height'] * 1.0 : null;
}