MoonWidget constructor

const MoonWidget({
  1. Key? key,
  2. required DateTime date,
  3. double size = 36,
  4. double pixelSize = 1.0,
  5. Color moonColor = Colors.amber,
  6. Color earthshineColor = Colors.black87,
  7. String? backgroundImageAsset,
  8. double shadowRatio = 1.0,
})

Implementation

const MoonWidget({
  Key? key,
  required this.date,
  this.size = 36,
  this.pixelSize = 1.0,
  this.moonColor = Colors.amber,
  this.earthshineColor = Colors.black87,
  this.backgroundImageAsset,
  this.shadowRatio = 1.0,
}) : super(key: key);