generateIcon static method

IconData generateIcon(
  1. ToastType type
)

Implementation

static IconData generateIcon(ToastType type) {
  switch (type) {
    case ToastType.success:
      return Icons.check;
    case ToastType.fail:
      return Icons.close;
    case ToastType.info:
      return Icons.info;
  }
}