createWarning static method

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

Implementation

static AlertInfoWidget createWarning(String text,
    {iconData = Icons.warning, raised: false, double margin: 10}) {
  return AlertInfoWidget(
    text,
    type: AlertType.WARNING,
    iconData: iconData,
    raised: raised,
    margin: margin,
  );
}