icon static method

OctoErrorBuilder icon({
  1. IconData icon = Icons.error,
  2. Color? color,
})

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,
      );
}