RoadInfo constructor

RoadInfo({
  1. required String roadname,
  2. required RoadShieldType shieldtype,
})

Creates a new instance of RoadInfo.

API consumers should not call this constructor directly. Obtain instances from NavigationInstruction, RouteInstructionBase, or similar classes instead.

Implementation

RoadInfo({required String roadname, required RoadShieldType shieldtype})
  : _roadname = roadname,
    _shieldtype = shieldtype;