PopupSocketManager class
Constructors
-
PopupSocketManager(String username, String userId, Map<
String, dynamic> metadata, BuildContext context, String socketUrl, String apiUrl, String clientApiUrl, AppDatabase database, String appId)
Properties
- apiService ↔ ApiService
-
latefinal
- apiUrl → String
-
final
- appId → String
-
final
- clientApiUrl → String
-
final
- context → BuildContext
-
final
- database → AppDatabase
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
metadata
→ Map<
String, dynamic> -
final
- primaryPeriority ↔ int
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shownPopupIds
↔ Set<
String> -
getter/setter pair
- socket ↔ Socket
-
getter/setter pair
- socketUrl → String
-
final
- userId → String
-
final
- username → String
-
final
Methods
-
connectToSocket(
) → void -
dispose(
) → void -
fetchCachedPopups(
) → Future< void> -
handlePopupReceived(
Map< String, dynamic> json, {bool isCached = false}) → void -
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 Properties
- isSocketConnected ↔ bool
-
getter/setter pair