ToastificationWidget class

ToastificationWidget is a helper class to display customizable toast notifications.

It shows a toast with title, message, icon, and custom colors. The appearance and behavior (colors, icon, duration, position) are controlled by the MessageConfig parameter.

Usage example:

ToastificationWidget.show(
  context,
  'Info',
  'This is a toast notification.',
  MessageConfig(
    backgroundColor: Colors.blue,
    textColor: Colors.white,
    icon: Icons.info,
    duration: Duration(seconds: 3),
  ),
);

ToastificationWidget é uma classe auxiliar para exibir notificações toast customizáveis.

Exibe um toast com título, mensagem, ícone e cores personalizadas. A aparência e comportamento (cores, ícone, duração, posição) são controlados pelo parâmetro MessageConfig.

Exemplo de uso:

ToastificationWidget.show(
  context,
  'Informação',
  'Esta é uma notificação toast.',
  MessageConfig(
    backgroundColor: Colors.blue,
    textColor: Colors.white,
    icon: Icons.info,
    duration: Duration(seconds: 3),
  ),
);

Constructors

ToastificationWidget.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

show(BuildContext context, String title, String message, MessageConfig config) → void