Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made the SyncStateInfo class abstract. #4

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [1.3.0+1] - 2023-12-14

* A class `SyncStateInfo` now abstract.

## [1.3.0] - 2023-12-12

* Added class `SyncStateInfo` describing the current synchronization state and errors.
Expand Down
11 changes: 3 additions & 8 deletions lib/src/sync_state_info.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
/// Synchronization status information, including errors.
class SyncStateInfo {
final SyncState state;
final SyncError? syncError;

const SyncStateInfo(
this.state, {
this.syncError,
});
abstract class SyncStateInfo {
SyncState get state;
SyncError? get syncError;

/// Fatal error.
bool get isFatalError =>
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: in_sync_interface
description: An interface for synchronization functional. Used by in_sync.
version: 1.3.0
version: 1.3.0+1
homepage: https://github.com/innim/
repository: https://github.com/Innim/in_sync_interface
issue_tracker: https://github.com/Innim/in_sync_interface/issues
Expand Down
Loading