RepliedMsgAutoScrollConfig class
Constructors
- RepliedMsgAutoScrollConfig({bool enableHighlightRepliedMsg = true, bool enableScrollToRepliedMsg = true, Color highlightColor = Colors.grey, Duration highlightDuration = const Duration(milliseconds: 500), double highlightScale = 1.1, Duration highlightScrollDuration = const Duration(milliseconds: 300), Curve highlightScrollCurve = Curves.easeIn})
-
Configuration for auto scrolling and highlighting a message when
tapping on the original message above the replied message.
const
Properties
- enableHighlightRepliedMsg → bool
-
Highlights the text by changing background color of chat bubble for
given duration. Default to true.
final
- enableScrollToRepliedMsg → bool
-
Auto scrolls to original message when tapped on replied message.
Defaults to true.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- highlightColor → Color
-
Chat bubble color when highlighted. Defaults to Colors.grey.
final
- highlightDuration → Duration
-
Chat will remain highlighted for this duration. Defaults to 500ms.
final
- highlightScale → double
-
When replied message have image or only emojis. They will be scaled
for provided highlightDuration to highlight them. Defaults to 1.1
final
- highlightScrollCurve → Curve
-
Animation curve for auto scroll. Defaults to Curves.easeIn.
final
- highlightScrollDuration → Duration
-
Time taken to auto scroll to original message. Default to 300ms.
final
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited