MPBounds class

Describes the geographical bounds as a rectangle spanning from its northeastern point to its southwestern point

Inheritance
  • Object
  • MapsIndoorsObject
  • MPBounds

Constructors

MPBounds({required MPPoint northeast, required MPPoint southwest})
Build a MPBounds from a pair of coordinates
const

Properties

center MPPoint
Calculates the center of the bounds
no setter
hashCode int
The hash code for this object.
no setterinherited
northeast MPPoint
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
southwest MPPoint
final

Methods

contains(MPPoint point) bool
Check whether a point is inside the bounds
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the MPBounds to a JSON representation that can be parsed by the MapsIndoors Platform SDK
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

builder() → MPBoundsBuilder
fromJson(dynamic json) MPBounds?
Attempts to build a MPBounds from a JSON object, this method will decode the object if needed