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

SuggestionListItem({required String id, String? title, String? subtitle, AvatarStyle? avatarStyle, String? avatarUrl, String? avatarName, Function? onTap})

Properties

avatarName String?
avatarName is a String value that defines the name of the avatar.
final
avatarStyle AvatarStyle?
avatarStyle is an AvatarStyle object that defines the style of the avatar.
final
avatarUrl String?
avatarUrl is a String value that defines the URL of the avatar.
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