Quadrilateral constructor

Quadrilateral(
  1. Map<String, dynamic> nativeQuad
)

Implementation

Quadrilateral(Map<String, dynamic> nativeQuad) {
    this.upperLeft = Point(Map<String, dynamic>.from(nativeQuad['upperLeft']));
    this.upperRight = Point(Map<String, dynamic>.from(nativeQuad['upperRight']));
    this.lowerLeft = Point(Map<String, dynamic>.from(nativeQuad['lowerLeft']));
    this.lowerRight = Point(Map<String, dynamic>.from(nativeQuad['lowerRight']));
}