PolylineLayer<R extends Object> class
base
A Polyline (aka. LineString) layer for FlutterMap.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- PolylineLayer
- Annotations
Constructors
-
PolylineLayer({Key? key, required List<
Polyline< polylines, double? cullingMargin = 10, LayerHitNotifier<R> >R> ? hitNotifier, double minimumHitbox = 10, bool drawInSingleWorld = false, double simplificationTolerance = 0.3}) -
Create a new PolylineLayer to use as child inside FlutterMap.children.
const
Properties
- cullingMargin → double?
-
Acceptable extent outside of viewport before culling polyline segments
final
- drawInSingleWorld → bool
-
Whether polylines should only be drawn/projected onto a single world
instead of potentially being drawn onto adjacent worlds (based on the
shortest distance)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
hitNotifier
→ LayerHitNotifier<
R> ? -
A notifier to be notified when a hit test occurs on the layer
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- minimumHitbox → double
-
The minimum radius of the hittable area around each Polyline in logical
pixels
final
-
polylines
→ List<
Polyline< R> > -
Polylines to draw
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- simplificationTolerance → double
-
Distance between two neighboring polyline points, in logical pixels scaled
to floored zoom
finalinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< PolylineLayer< R> > -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited