LayerPosition class Null safety

Specifies position of a layer that is added via addStyleLayer method.

Constructors

LayerPosition({String? above, String? below, int? at})

Properties

above String?
Layer should be positioned above specified layer id.
read / write
at int?
Layer should be positioned at specified index in a layers stack.
read / write
below String?
Layer should be positioned below specified layer id.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

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

Operators

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

Static Methods

decode(Object result) LayerPosition