NotificationCenter class

Central de notificações: ao notificar, dispara para todos os canais ativos automaticamente. Erros de um canal não afetam os outros.

Constructors

NotificationCenter(List<NotificationChannel> channels)
const

Properties

active List<NotificationChannel>
Canais atualmente ativos (configurados).
no setter
channels List<NotificationChannel>
final
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
notifyAll(NotificationMessage message) Future<List<ChannelResult>>
Envia message por todos os canais ativos; retorna o resultado de cada um.
toString() String
A string representation of this object.
inherited

Operators

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