ChatController class
- Inheritance
-
- Object
- ChangeNotifier
- ChatController
Constructors
-
ChatController.new({required String chatId, required CollectionReference<
Object?> chatCollectionReference, required String currentUserId, required ChatUserModal currentUserModal, required ChatListModal? chatListModal})
Properties
-
chatCollectionReference
→ CollectionReference<
Object?> -
final
- chatId ↔ String
-
getter/setter pair
- chatListModal ↔ ChatListModal?
-
getter/setter pair
-
copyData
↔ List<
QueryDocumentSnapshot< Object?> > -
getter/setter pair
-
currentPos
↔ ValueNotifier<
int> -
getter/setter pair
-
currentPositionLabel
↔ ValueNotifier<
String> -
getter/setter pair
- currentUserId → String
-
final
- currentUserModal → ChatUserModal
-
final
-
durationStream
↔ StreamSubscription<
Duration> ? -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
-
isComplete
↔ ValueNotifier<
bool> -
getter/setter pair
- isInit ↔ bool
-
getter/setter pair
- isLastPage ↔ bool
-
getter/setter pair
- isLastUser ↔ bool
-
getter/setter pair
- isLoad ↔ bool
-
getter/setter pair
- isNormalChatSavedLocally ↔ bool
-
getter/setter pair
-
isPlayed
↔ ValueNotifier<
bool> -
getter/setter pair
-
isPlaying
↔ ValueNotifier<
bool> -
getter/setter pair
- load ↔ bool
-
getter/setter pair
-
maxDuration
↔ ValueNotifier<
int> -
getter/setter pair
- messageController ↔ TextEditingController
-
getter/setter pair
-
messageData
↔ Map<
String, ChatModal> -
getter/setter pair
-
messageID
↔ ValueNotifier<
String> -
getter/setter pair
-
newData
↔ Map<
String, dynamic> -
TODO IMP 6 : ye hatana hai
getter/setter pair
-
newMessages
↔ List<
ChatModal> -
getter/setter pair
-
offlineMessages
↔ List<
ChatModal> -
getter/setter pair
- playerController ↔ AudioPlayer?
-
getter/setter pair
-
playerStateChangeStream
↔ StreamSubscription<
PlayerState> ? -
getter/setter pair
-
positionChangeStream
↔ StreamSubscription<
Duration> ? -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedCopyText ↔ String?
-
getter/setter pair
-
setPlaybackRateValue
↔ ValueNotifier<
double> -
getter/setter pair
-
tempChats
↔ Map<
String, Map< int, ChatModal> > -
getter/setter pair
-
test
↔ ValueNotifier<
bool> -
getter/setter pair
- urlSource ↔ dynamic
-
getter/setter pair
-
users
↔ List<
QueryDocumentSnapshot< Object?> > -
getter/setter pair
- usersLoad ↔ bool
-
getter/setter pair
-
usersSnap
↔ QuerySnapshot<
Object?> ? -
getter/setter pair
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
deleteMessagse(
String messageId) → dynamic - to delete a message, call this function
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
disposeAllData(
) → dynamic -
getChatMessages(
String chatId) → List< ChatModal> - get temporary chat messages, which are yet to be sent
-
getMessageList(
AsyncSnapshot< List< snapshot) → List<DocumentSnapshot< >Object?> >ChatModal> -
getMessagesStream(
) → Stream< List< DocumentSnapshot< >Object?> > - this will the message stream
-
getUnreadChatCount(
) → Stream< QuerySnapshot< Object?> > -
hideLoader(
) → void -
init(
{AudioPlayer? audioPlayer}) → void -
initializeMessageList(
) → dynamic -
loadMoreMessages(
) → Future< void> - to load more messages call this function
-
markMessagesAsRead(
) → dynamic - mark all messages as read this will be called when the chat conversation or chat builder is called so that all unread messages are marked as read
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
reload(
) → dynamic -
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
sendMessage(
{required ChatModal chatModal, required Map otherUserObject, required bool isBlocked, required List deviceIdList, String? notificationTitle, String? notificationMessage}) → dynamic - to send a message call this function
-
sendTextMessage(
) → dynamic - to send a text message call this function
-
showAudioLoader(
) → void -
toString(
) → String -
A string representation of this object.
inherited
-
unsetAll(
) → Future< void>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited