PaddingOptions class

Options for setting padding on a call to {@link MapboxMap#fitBounds}. All properties of this object must be non-negative integers.

@typedef {Object} PaddingOptions @property {number} top Padding in pixels from the top of the map canvas. @property {number} bottom Padding in pixels from the bottom of the map canvas. @property {number} left Padding in pixels from the left of the map canvas. @property {number} right Padding in pixels from the right of the map canvas.

Constructors

PaddingOptions({num? top, num? bottom, num? left, num? right})
factory
PaddingOptions.fromJsObject(PaddingOptionsJsImpl jsObject)
Creates a new PaddingOptions from a jsObject.

Properties

bottom num
no setter
hashCode int
The hash code for this object.
no setterinherited
jsObject → PaddingOptionsJsImpl
JS object.
finalinherited
left num
no setter
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
top num
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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