SmsMessage constructor

SmsMessage({
  1. required String phoneNumber,
  2. required String message,
  3. String id = '',
  4. DateTime? timestamp,
  5. bool isSent = false,
  6. String? error,
})

Implementation

SmsMessage({
  required this.phoneNumber,
  required this.message,
  this.id = '',
  DateTime? timestamp,
  this.isSent = false,
  this.error,
}) : timestamp = timestamp ?? DateTime.now();