MessageInputTypingHandler class abstract
A typing handler that will emit a TypingEvent when necessary Four steps are required to use it:
- Add MessageInputTypingHandler as a mixin to your class
- Override typingCallback
- Override textController
- Call attachTypingListener when creating your class MessageInput will give you an example.
Constructors
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