ChatInputFieldProvider class
- Inheritance
-
- Object
- ChangeNotifier
- ChatInputFieldProvider
Constructors
- ChatInputFieldProvider({required dynamic onTextSubmit(ChatMessage text), required TextEditingController textController, required dynamic handleRecord(ChatMessage? audioMessage, bool cancel), required VoidCallback onSlideToCancelRecord, required double cancelPosition, required dynamic handleImageSelect(ChatMessage? imageMessage)})
Properties
- cancelPosition → double
-
final
- duration → int
-
getters
no setter
-
formKey
→ GlobalKey<
FormState> -
no setter
- handleImageSelect → dynamic Function(ChatMessage? imageMessage)
-
function to handle the selected image
final
- handleRecord → dynamic Function(ChatMessage? audioMessage, bool cancel)
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- height ← double
-
setters
no getter
- isRecording → bool
-
no setter
- isText ↔ bool
-
getter/setter pair
- micPermission ↔ Permission
-
getter/setter pair
- onSlideToCancelRecord → VoidCallback
-
final
- onTextSubmit → dynamic Function(ChatMessage text)
-
The callback when send is pressed.
final
- recordTime → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textController → TextEditingController
-
final
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
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).
override
-
getPosition(
) → double - get the animated button position
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
onAnimatedButtonLongPress(
) → void - animated button on LongPress
-
onAnimatedButtonLongPressEnd(
LongPressEndDetails details) → void - animated button on Long Press End
-
onAnimatedButtonLongPressMoveUpdate(
LongPressMoveUpdateDetails details) → void - animated button on Long Press Move Update
-
onAnimatedButtonTap(
) → void - animated button on tap
-
onTextFieldValueChanged(
String value) → void -
pickImage(
int type) → void - open image picker from camera, gallery, or cancel the selection
-
recordAudio(
) → void - function used to record audio
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
stopRecord(
) → Future< String?> - function used to stop recording and returns the record path as a string
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited