BlurhashFfi constructor

const BlurhashFfi({
  1. required String hash,
  2. Key? key,
  3. Color color = Colors.blueGrey,
  4. BoxFit imageFit = BoxFit.fill,
  5. int decodingWidth = 32,
  6. int decodingHeight = 32,
  7. String? image,
  8. VoidCallback? onDecoded,
  9. VoidCallback? onDisplayed,
  10. VoidCallback? onReady,
  11. VoidCallback? onStarted,
  12. Duration duration = const Duration(milliseconds: 1000),
  13. Map<String, String> httpHeaders = const {},
  14. Curve curve = Curves.easeOut,
  15. ImageErrorWidgetBuilder? errorBuilder,
})

Implementation

const BlurhashFfi({
  required this.hash,
  Key? key,
  this.color = Colors.blueGrey,
  this.imageFit = BoxFit.fill,
  this.decodingWidth = 32,
  this.decodingHeight = 32,
  this.image,
  this.onDecoded,
  this.onDisplayed,
  this.onReady,
  this.onStarted,
  this.duration = const Duration(milliseconds: 1000),
  this.httpHeaders = const {},
  this.curve = Curves.easeOut,
  this.errorBuilder,
})  : assert(decodingWidth > 0),
      assert(decodingHeight != 0),
      super(key: key);