MoonWidget.image constructor

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

Moon with background image (moonColor is ignored)

Implementation

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