StyleExpressionHandle class final

Owner of one native handle.

A parsed style expression.

See mln_style_expression in the C API reference.

Implemented types

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → int
The native handle id.
no setter
isClosed → bool
Whether the binding has accepted a release, dispose, or discard of this handle.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

evaluate({StyleExpressionInputs? inputs}) → Object?
Evaluates a style expression and writes its result as JSON.
getInfo() → StyleExpressionInfo
Reads what a style expression's result depends on.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release() → void
Releases a parsed style expression.
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

create(Object? expression, {StyleExpressionOptions? options}) → StyleExpressionHandle
Parses a style [expression](https://maplibre.org/maplibre-style-spec/expressions/) to evaluate without a map.