MPLabelGraphic class

Represents a label graphic in the MapsIndoors platform. A label graphic is used to display text on top of an image.

Inheritance
  • Object
  • MapsIndoorsObject
  • MPLabelGraphic

Constructors

MPLabelGraphic({required String backgroundImage, required List<int> content, required List<List<int>> stretchX, required List<List<int>> stretchY})
Creates a new instance of MPLabelGraphic. All parameters are required in order to create a cohesive graphic label.

Properties

backgroundImage String
The background image of the label graphic.
final
content List<int>
The content area of the label graphic, this is where the text can be drawn.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stretchX List<List<int>>
The stretchX values of the label graphic. These define where the graphic can be stretched horizontally.
final
stretchY List<List<int>>
The stretchY values of the label graphic. These define where the graphic can be stretched vertically.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this instance of MPLabelGraphic to a JSON parseable object.
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(dynamic json) MPLabelGraphic?
Attempts to parse an instance of MPLabelGraphic from a JSON object.