Update package versions and refactor accordingly

This commit is contained in:
Oliver 2021-06-18 21:28:07 +10:00
parent a415a2cd99
commit 65cabc2fa9
12 changed files with 205 additions and 144 deletions

View file

@ -301,6 +301,10 @@ class InvenTreePart extends InvenTreeModel {
return img.isNotEmpty ? img : InvenTreeAPI.staticThumb;
}
void uploadImage(File image) async {
// TODO
}
// Return the "starred" status of this part
bool get starred => jsondata['starred'] as bool ?? false;