errorBuilder static method

Widget errorBuilder(
  1. BuildContext context,
  2. Object error,
  3. StackTrace? stackTrace,
  4. double size,
  5. double radius,
  6. Color? errorBackgroundColor,
  7. Color? errorTextColor,
  8. String? errorText,
)

Implementation

static Widget errorBuilder(
  BuildContext context,
  Object error,
  StackTrace? stackTrace,
  double size,
  double radius,
  Color? errorBackgroundColor,
  Color? errorTextColor,
  String? errorText,
) {
  return _imageErrorWidget(
    height: size,
    width: size,
    radius: radius,
    altText: errorText ?? "Error",
    altTextColor: errorTextColor,
    background: errorBackgroundColor ?? Colors.grey,
  );
}