LikeToastConfig class

Configuration for user toast/notification callbacks in the LIKE network engine.

Setting any custom callback handler completely overrides/bypasses the engine's default ScaffoldMessenger message for that event, executing only the provided custom function.

Constructors

LikeToastConfig({void connected(String message)?, void disconnected(String message)?, void slowInternet(String message)?, void resync(String message, double progress)?, void actionQueued(String message)?, void cacheUse(String message)?, void swrUse(String message)?})
const

Properties

actionQueued → void Function(String message)?
Callback triggered when an offline action is queued.
final
cacheUse → void Function(String message)?
Callback triggered when local offline cache data is served.
final
connected → void Function(String message)?
Callback triggered when internet connection is established/restored.
final
disconnected → void Function(String message)?
Callback triggered when internet connection is lost.
final
hashCode → int
The hash code for this object.
no setterinherited
resync → void Function(String message, double progress)?
Callback triggered during background queue synchronization.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slowInternet → void Function(String message)?
Callback triggered when an API origin transitions to slow network quality. Repeated slow samples are suppressed until that origin recovers.
final
swrUse → void Function(String message)?
Callback triggered during Stale-While-Revalidate background fetch.
final

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