TableEvent constructor

TableEvent({
  1. required String title,
  2. required int eventId,
  3. required int laneIndex,
  4. String location = '',
  5. required TableEventTime startTime,
  6. required TableEventTime endTime,
  7. EdgeInsets padding = const EdgeInsets.all(10),
  8. EdgeInsets margin = const EdgeInsets.all(1),
  9. BoxDecoration? decoration,
  10. Color backgroundColor = const Color(0xCC2196F3),
  11. 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));