live activity handler

live_activities
tahaalam 2 weeks ago
parent 841f740cbd
commit b8c35ecff8

@ -4,19 +4,21 @@ class PatientQueue {
final String? currentlyServingStatus;
final String? currentlyServingTitle;
final String? nextTicketStatus;
final int? currentlyServingCallType;
final int? callType;// background will be same as of the [Utils.getCardButtonColor]
const PatientQueue({ this.queueNo, this.currentlyServingStatus, this.nextTicketStatus, this.callType, this.currentlyServingTitle, });
const PatientQueue({ this.queueNo, this.currentlyServingStatus, this.nextTicketStatus, this.callType, this.currentlyServingTitle,this.currentlyServingCallType, });
/// Converts this PatientQueue object to a map.
/// This is used for passing data to the native side for Live Activities.
Map<String, dynamic> toMap() {
return {
'nextTicket': queueNo,
'queueNo': queueNo,
'currentlyServingStatus': currentlyServingStatus,
'nextTicketStatus': nextTicketStatus,
'nextTicketBackground': callType,
'callType': callType,
'currentlyServingTitle': currentlyServingTitle,
'currentlyServingCallType': currentlyServingCallType,
};
}
}
Loading…
Cancel
Save