MFDirectionsRenderer constructor
const
MFDirectionsRenderer({
- required MFDirectionsRendererId rendererId,
- List<
List< routes = const <List<MFLatLng>>[],MFLatLng> > - String directions = "",
- int activedIndex = 0,
- int activeStrokeWidth = 8,
- Color activeStrokeColor = Colors.blue,
- int activeOutlineWidth = 2,
- Color activeOutlineColor = const Color(0xFF0D47A1),
- int inactiveStrokeWidth = 8,
- Color inactiveStrokeColor = Colors.blueGrey,
- int inactiveOutlineWidth = 1,
- Color inactiveOutlineColor = const Color(0xFF263238),
- MFDirectionsPOIOptions originPOIOptions = const MFDirectionsPOIOptions(),
- MFDirectionsPOIOptions destinationPOIOptions = const MFDirectionsPOIOptions(),
- MFDirectionsCallback? onRouteTap,
Creates an immutable object representing a gon drawn through geographical locations on the map.
Implementation
const MFDirectionsRenderer({
required this.rendererId,
this.routes = const <List<MFLatLng>>[],
this.directions = "",
this.activedIndex = 0,
this.activeStrokeWidth = 8,
this.activeStrokeColor = Colors.blue,
this.activeOutlineWidth = 2,
this.activeOutlineColor = const Color(0xFF0D47A1),
this.inactiveStrokeWidth = 8,
this.inactiveStrokeColor = Colors.blueGrey,
this.inactiveOutlineWidth = 1,
this.inactiveOutlineColor = const Color(0xFF263238),
this.originPOIOptions = const MFDirectionsPOIOptions(),
this.destinationPOIOptions = const MFDirectionsPOIOptions(),
this.onRouteTap,
});