ImagePlaceholderBuilder typedef
ImagePlaceholderBuilder =
Widget Function(BuildContext context, {double? height, double? width})
A builder for an image placeholder widget.
This builder is called to create a placeholder widget while an image is loading.
The width
and height
parameters specify the desired dimensions of the
placeholder.
Example:
ImagePlaceholderBuilder builder = (context, {width, height}) => Container(
width: width,
height: height,
color: Colors.grey[300],
);
Implementation
typedef ImagePlaceholderBuilder = Widget Function(BuildContext context,
{double? width, double? height});