MessageInputTypingHandler class abstract

A typing handler that will emit a TypingEvent when necessary Four steps are required to use it:

  1. Add MessageInputTypingHandler as a mixin to your class
  2. Override typingCallback
  3. Override textController
  4. Call attachTypingListener when creating your class MessageInput will give you an example.

Constructors

MessageInputTypingHandler()

Properties

hashCode int
The hash code for this object.
no setterinherited
idleStopDelay Duration
If the user starts typing and stops for idleStopDelay, a TypingEvent.stop will be emitted Defaults to 5 seconds, override at will;
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textController TextEditingController
no setter
typingCallback → (dynamic Function(TypingEvent event)?)
Called when the user starts typing or stops typing
no setter

Methods

attachTypingListener() → void
Call this method in your initState
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