build method
dynamic
build( - dynamic context
)
Implementation
@override
Widget build(BuildContext context) {
if (icon != null) {
return _buildWithIcon(context);
}
return TextButton(
onPressed: () async {
await ActerErrorDialog.show(
context: context,
error: error,
stack: stack,
title: dialogTitle,
text: text,
textBuilder: textBuilder,
onRetryTap: onRetryTap != null
? () {
onRetryTap!();
Navigator.pop(context);
}
: null,
includeBugReportButton: includeBugReportButton,
);
},
child: Text(L10n.of(context).fatalError),
);
}