tipo property

String get tipo

Retorna o tipo da mensagem baseado no código

Implementation

String get tipo {
  if (isSucesso) return 'Sucesso';
  if (isErro) return 'Erro';
  if (isAviso) return 'Aviso';
  return 'Informação';
}