icon static method
Show an icon. Default to Icons.error. Color can be set, but defaults to the value given by the current IconTheme.
Implementation
static OctoErrorBuilder icon({
IconData icon = Icons.error,
Color? color,
}) {
return (context, error, stacktrace) => Icon(
icon,
color: color,
);
}