Light.ambient constructor

Light.ambient({
  1. Color color = const Color(0xFF404040),
  2. double intensity = 0.3,
})

Creates a default ambient light.

Implementation

factory Light.ambient({
  Color color = const Color(0xFF404040),
  double intensity = 0.3,
}) {
  return Light(
    name: 'ambient',
    type: LightType.ambient,
    color: color,
    intensity: intensity,
  );
}