t×tecexpressby TeKOcloud
DEv0.7.1
API & types / FLUTTER

TxAppointment.

Immutable appointment with a validated key, title and end after start. All-day bounds must be local midnight.

TxAppointment

ParameterTypeDefaultMeaning
idObjectrequiredUnique stable ID.
textStringrequiredText to display.
startDateDateTimerequiredAppointment/cell start.
endDateDateTimerequiredAppointment/cell end; exclusive for all-day entries.
allDayboolfalseAll-day appointment with local day boundaries.
descriptionString''Optional appointment description.
Member / type / returnMeaning
TxAppointment copyWith({String? text, DateTime? startDate, DateTime? endDate, bool? allDay, String? description})Creates a copy with the supplied changes; preserves other values.
dart
import 'package:tecexpress/tecexpress.dart';

Future<void> example() async {
  final meeting = TxAppointment(id: 1, text: 'Meeting', startDate: DateTime(2026, 10, 28, 9), endDate: DateTime(2026, 10, 28, 10));
  print(meeting.copyWith(text: 'Updated').text);
}