Old and proposed new appointment for an update.
TxAppointmentUpdate
| Parameter | Type | Default | Meaning |
|---|---|---|---|
| oldData | TxAppointment | required | Previous record. |
| newData | TxAppointment | required | Proposed new record. |
import 'package:tecexpress/tecexpress.dart';
Future<void> example() async {
final old = TxAppointment(id: 1, text: 'Meeting', startDate: DateTime(2026, 10, 28, 9), endDate: DateTime(2026, 10, 28, 10));
final update = TxAppointmentUpdate(oldData: old, newData: old.copyWith(text: 'Updated'));
print(update.newData.text);
}