error static method

void error(
  1. String message
)

Implementation

static void error(String message) {
  BotToast.showNotification(
    backgroundColor: errorColor,
    borderRadius: 8.0,
    margin: EdgeInsets.symmetric(horizontal: 15),
    title:
        (_) => Text(
          message,
          style: baseText.copyWith(fontSize: 13, color: titleColor),
        ),
    leading:
        (_) => Container(
          height: 20,
          width: 20,
          decoration: BoxDecoration(
            color: Color(0xffDB2916),
            shape: BoxShape.circle,
          ),
          child: Icon(Icons.close, color: whiteColor, size: 15),
        ),
    duration: Duration(seconds: 5),
    align: Alignment(0, 0.95),
  );
}