Loading...
Searching...
No Matches
TurnEvent Class Reference

Class describing turn guidance event. More...

Public Member Functions

 TurnEvent (this.type, this.angle)
 Default constructor.
 

Public Attributes

TurnType type
 Turn direction/severity type.
 
int angle
 Signed turn angle in degrees.
 

Detailed Description

Class describing turn guidance event.

Referenced from RouteEvent.

Definition at line 20 of file turn_event.dart.

Constructor & Destructor Documentation

◆ TurnEvent()

TurnEvent.TurnEvent ( this. type,
this. angle )

Default constructor.

Member Data Documentation

◆ angle

int TurnEvent.angle

Signed turn angle in degrees.

Dart code snippet:

int angle = event.angle;
print("Turn angle: $angle");

Definition at line 44 of file turn_event.dart.

◆ type

TurnType TurnEvent.type

Turn direction/severity type.

Dart code snippet:

TurnType type = event.type;
print("Turn type: $type");

Definition at line 33 of file turn_event.dart.


The documentation for this class was generated from the following file: