Message.success constructor

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

Implementation

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