icon property
Object
get
icon
Implementation
Object get icon {
switch (id) {
case 'id':
case 'load_id':
case 'api_version':
case 'name':
case 'person_id':
return FontAwesomeIcons.hashtag;
case 'load_type':
case 'reefer_temp':
case 'api':
case 'pickup.city':
case 'pickup.state':
case 'pickup.zip':
case 'delivery.city':
case 'delivery.state':
case 'delivery.zip':
return FontAwesomeIcons.t;
case 'customer_id':
return FontAwesomeIcons.solidBuilding;
case 'created_at':
return FontAwesomeIcons.solidCalendarDays;
case 'active':
case 'truck_order_not_used':
return FontAwesomeIcons.squareCheck;
default:
return FontAwesomeIcons.questionCircle; // Icône par défaut
}
}