displayTitle property

String get displayTitle

Helper to get the display title based on type if not explicitly provided.

Implementation

String get displayTitle => title ?? (type == ClockInType.inTime ? 'Clock In' : 'Clock Out');