TableEvent constructor
TableEvent({
- required String title,
- required int eventId,
- required int laneIndex,
- String location = '',
- required TableEventTime startTime,
- required TableEventTime endTime,
- EdgeInsets padding = const EdgeInsets.all(10),
- EdgeInsets margin = const EdgeInsets.all(1),
- BoxDecoration? decoration,
- Color backgroundColor = const Color(0xCC2196F3),
- TextStyle textStyle = const TextStyle(color: Colors.white),
Implementation
TableEvent({
required this.title,
required this.eventId,
required this.laneIndex,
this.location: '',
required this.startTime,
required this.endTime,
this.padding: const EdgeInsets.all(10),
this.margin: const EdgeInsets.all(1),
// this.onTap,
this.decoration,
this.backgroundColor: const Color(0xCC2196F3),
this.textStyle: const TextStyle(color: Colors.white),
}) : assert(endTime.isAfter(startTime));