AtmosphereParameters.fromMap constructor
AtmosphereParameters.fromMap(
[ - Map<String, dynamic>? map
])
Implementation
AtmosphereParameters.fromMap([Map<String,dynamic>? map]){
map = map ?? {};
particles = map['particles'] ?? 4000;
minParticleSize = map['minParticleSize'] ?? 50;
maxParticleSize = map['maxParticleSize'] ?? 100;
radius = map['radius'] ?? 0.0;
thickness = map['thickness'] ?? 1.5;
density = map['density'] ?? 0.0;
opacity = map['opacity'] ?? 0.35;
scale = map['scale'] ?? 8.0;
color = map['color'] != null ? Color.fromHex32(map['color']) : Color.fromHex32(0xffffff);
speed = map['speed'] ?? 0.03;
lightDirection = map['lightDirection'] != null ? Vector3(map['lightDirection'][0], map['lightDirection'][1], map['lightDirection'][2]) : Vector3(1,1,1);
}