mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-18 07:44:26 +01:00
new: server tag
This commit is contained in:
@@ -19,4 +19,16 @@ extension StringOrderX on StringOrder {
|
||||
if (index == -1) return;
|
||||
this[index] = newId;
|
||||
}
|
||||
|
||||
int index(String id) {
|
||||
return indexOf(id);
|
||||
}
|
||||
|
||||
void moveById(String oid, String nid, StoreProperty property) {
|
||||
final index = indexOf(oid);
|
||||
if (index == -1) return;
|
||||
final newIndex = indexOf(nid);
|
||||
if (newIndex == -1) return;
|
||||
move(index, newIndex, property);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user