MFDirectionsRenderer constructor

const MFDirectionsRenderer({
  1. required MFDirectionsRendererId rendererId,
  2. List<List<MFLatLng>> routes = const <List<MFLatLng>>[],
  3. String directions = "",
  4. int activedIndex = 0,
  5. int activeStrokeWidth = 8,
  6. Color activeStrokeColor = Colors.blue,
  7. int activeOutlineWidth = 2,
  8. Color activeOutlineColor = const Color(0xFF0D47A1),
  9. int inactiveStrokeWidth = 8,
  10. Color inactiveStrokeColor = Colors.blueGrey,
  11. int inactiveOutlineWidth = 1,
  12. Color inactiveOutlineColor = const Color(0xFF263238),
  13. MFDirectionsPOIOptions originPOIOptions = const MFDirectionsPOIOptions(),
  14. MFDirectionsPOIOptions destinationPOIOptions = const MFDirectionsPOIOptions(),
  15. 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,
});