UserTypingStateStream class

Notification class for features like watching and streaming user typing activity and other related features.

Sample Code Below:

StreamBuilder(
  stream: UserTypingStateStream.instance.isTypingStream,
    builder: (context, data){
      if(data.hasData && data.data == true){
        return const Text('Typing');
      }else{
        return const SizedBox.shrink();
      }
    }
  )
)

So with the above, you can do whatever you want.

Like sending the event to the server and listening to it at the other users end to notify in chat

Properties

hashCode int
The hash code for this object.
no setterinherited
isTypingStream Stream<bool>
Typing state stream
no setter
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
setIsTyping() → void
set typing state
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance UserTypingStateStream
Single instance
final