SmsConversation class

SMS Conversation model representing a conversation thread

This model represents a conversation between the user and another contact, containing summary information about the conversation.

Example usage:

final conversation = SmsConversation(
  id: '123',
  threadId: '456',
  address: '+1234567890',
  date: DateTime.now(),
  snippet: 'Latest message preview...',
);

Constructors

SmsConversation({required String id, required String threadId, required String address, required DateTime date, required String snippet})
const
SmsConversation.fromMap(Map<String, dynamic> map)
Creates an SmsConversation from a Map (typically from platform channel) This method safely converts the map data to proper types
factory

Properties

address String
Phone number or address of the contact
final
date DateTime
Date of the most recent message in the conversation
final
hashCode int
The hash code for this object.
no setteroverride
id String
Unique identifier for the conversation
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snippet String
Preview/snippet of the most recent message
final
threadId String
Thread ID used to group messages in a conversation
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts the SmsConversation to a Map for serialization
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override