errorWidgetChild method
Widget
errorWidgetChild({
- Key? key,
- FlutterErrorDetails? details,
- String? message,
- Object? error,
- ParagraphStyle? paragraphStyle,
- TextStyle? textStyle,
- EdgeInsets? padding,
- double? minimumWidth,
- Color? backgroundColor,
- CustomPainter? customPainter,
Implementation
Widget errorWidgetChild({
Key? key,
FlutterErrorDetails? details,
String? message,
Object? error,
ui.ParagraphStyle? paragraphStyle,
ui.TextStyle? textStyle,
EdgeInsets? padding,
double? minimumWidth,
Color? backgroundColor,
CustomPainter? customPainter,
}) {
//
if (details != null) {
//
error ??= details.exception;
}
// Default
customPainter ??= _ErrorSymbol();
//
const double WIDTH = 30;
return ErrorRenderObjectWidget(
key: key,
message: message,
error: error,
paragraphStyle: paragraphStyle,
textStyle: textStyle,
padding: padding,
minimumWidth: minimumWidth,
backgroundColor: backgroundColor,
child: CustomPaint(
size: Size(WIDTH, (WIDTH * 1).toDouble()),
painter: customPainter,
),
);
}