Route constructor Null safety

Route(
  1. {required String id,
  2. required String code,
  3. required TransportType transportType,
  4. required String name,
  5. Color? color}
)

Implementation

Route({
  required this.id,
  required this.code,
  required this.transportType,
  required this.name,
  this.color,
});