VehicleConfig constructor

const VehicleConfig({
  1. required Color primaryColor,
  2. double size = 20.0,
  3. VehicleDirection direction = VehicleDirection.north,
  4. bool isFlashing = false,
  5. bool isCrashed = false,
  6. bool showEffects = true,
  7. double animationSpeed = 1.0,
})

Implementation

const VehicleConfig({
  required this.primaryColor,
  this.size = 20.0,
  this.direction = VehicleDirection.north,
  this.isFlashing = false,
  this.isCrashed = false,
  this.showEffects = true,
  this.animationSpeed = 1.0,
});