FogExp2 constructor

FogExp2(
  1. int color, [
  2. double? density
])

The color parameter is passed to the Color constructor to set the color property.

Implementation

FogExp2(int color,[ double? density]) {
  name = 'FogExp2';
  this.color = Color.fromHex32(color);
  this.density = (density != null) ? density : 0.00025;
  isFogExp2 = true;
}