mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
Porgress use dynamic color
This commit is contained in:
@@ -11,8 +11,7 @@ class SnippetStore extends PersistentStore {
|
||||
}
|
||||
|
||||
List<Snippet> fetch() {
|
||||
return getSnippetList(
|
||||
json.decode(box.get('snippet', defaultValue: '[]')!));
|
||||
return getSnippetList(json.decode(box.get('snippet', defaultValue: '[]')!));
|
||||
}
|
||||
|
||||
void delete(Snippet s) {
|
||||
@@ -30,4 +29,4 @@ class SnippetStore extends PersistentStore {
|
||||
int index(Snippet s) => fetch().indexWhere((e) => e.name == s.name);
|
||||
|
||||
bool have(Snippet s) => index(s) != -1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user