You might need to create lists that display different types of content. For example, you might be working on a list that shows a heading followed by a few items related to …
In some cases, you might want to display your items as a grid rather than a normal list of items that come one after the next. For this task, use the GridView widget.
MIT License
Copyright (c) 2020 Remi Rousselet
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including
MIT License
Copyright (c) 2020 Remi Rousselet
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without
enum OldVehicle{
car,
bus,
bicycle,
}
extension OldVehicleX on OldVehicle{
int get tires{
switch(this){
case OldVehicle.car:
return 4;
case OldVehicle.bus:
return 6;
case OldVehicle.bicycle:
return 2;
}
}
int get passengers{
switch(this){
case OldVehicle.car:
return 5;