flutter_agenda/lib/src/models/agenda_event.dart

24 lines
483 B
Dart
Raw Normal View History

2022-09-01 10:30:08 +02:00
import 'package:flutter/material.dart';
class AgendaEvent {
const AgendaEvent({
required this.start,
required this.end,
this.id,
this.content,
});
/// The start time of the event.
final DateTime start;
/// The end time of the event.
final DateTime end;
///
final Widget? content;
/// The identifier of the event that is used to combine events
/// with the same id. Leave empty or 0 if you don't want to combine events.
final int? id;
}