createDanger static method

AlertInfoWidget createDanger(
  1. String text, {
  2. dynamic iconData = Icons.info,
  3. dynamic raised = false,
  4. double margin = 10,
})

Implementation

static AlertInfoWidget createDanger(String text,
    {iconData = Icons.info, raised: false, double margin: 10}) {
  return AlertInfoWidget(
    text,
    type: AlertType.DANGER,
    iconData: iconData,
    raised: raised,
    margin: margin,
  );
}