mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
10 lines
223 B
Dart
10 lines
223 B
Dart
abstract class SyncAble<T> {
|
|
/// If [other] is newer than [this] then return true,
|
|
/// else return false
|
|
bool needSync(T other);
|
|
|
|
/// Merge [other] into [this],
|
|
/// return [this] after merge
|
|
T merge(T other);
|
|
}
|