BlurhashFfi constructor
const
BlurhashFfi({
- required String hash,
- Key? key,
- Color color = Colors.blueGrey,
- BoxFit imageFit = BoxFit.fill,
- int decodingWidth = 32,
- int decodingHeight = 32,
- String? image,
- VoidCallback? onDecoded,
- VoidCallback? onDisplayed,
- VoidCallback? onReady,
- VoidCallback? onStarted,
- Duration duration = const Duration(milliseconds: 1000),
- Map<
String, String> httpHeaders = const {}, - Curve curve = Curves.easeOut,
- 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);