newChild property

Widget get newChild

Implementation

Widget get newChild {
  return ExtendedImage(
    image: widget.image,
    fit: BoxFit.cover,
    loadStateChanged: (ExtendedImageState state) =>
        switch (state.extendedImageLoadState) {
      LoadState.loading => const ColoredBox(color: Color(0x10ffffff)),
      LoadState.completed => RepaintBoundary(child: state.completedWidget),
      LoadState.failed => widget.failedItemBuilder(context),
    },
  );
}