Message.error constructor

const Message.error({
  1. required String title,
  2. String? body,
  3. Future? cancel,
  4. List<MessageAction> actions = const [MessageAction()],
})

Implementation

const Message.error({required this.title, this.body, this.cancel, this.actions = const [MessageAction()]})
    : icon = Icons.error_outline_outlined,
      color = const Color(0xffd32f2f);