SuggestionListItem class
SuggestionListItem is a modal class used to define the structure of the list item used in the suggestions list.
SuggestionListItem(
title: 'John Doe',
subtitle: 'john.doe@cometchat',
avatarStyle: AvatarStyle(
width: 30,
height: 30,
borderRadius: 15,
),
avatarUrl: 'https://ui-avatars.com/api/?name=John+Doe',
avatarName: 'John Doe',
onTap: () {
print('John Doe tapped');
},
);
Constructors
Properties
- avatarHeight → double?
-
avatarHeight provides height to the widget
final
- avatarName → String?
-
avatarName is a String value that defines the name of the avatar.
final
- avatarUrl → String?
-
avatarUrl is a String value that defines the URL of the avatar.
final
- avatarWidth → double?
-
avatarWidth provides width to the widget
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
final
- onTap → Function?
-
onTap is a Function that defines the action to be performed when the list item is tapped.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subtitle → String?
-
subtitle is a String value that defines the subtitle of the list item.
final
- title → String?
-
title is a String value that defines the title of the list item.
final
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.
override