Skip to content

Commit

Permalink
fix: better analyzer fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
lesnitsky committed Feb 4, 2024
1 parent 6d69630 commit ce6f05a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.1

- Drop constructors for base classes for better analyzer fix.

## 0.2.0

- Added `Late`, `Async`, and `LateAsync`.
Expand Down
8 changes: 0 additions & 8 deletions lib/result.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ typedef Async<T> = AsyncResult<T>;
typedef LateAsync<T> = LateAsyncResult<T>;

sealed class Result<T> {
const Result();

/// Creates a [Success] result.
const factory Result.success(T value) = Success<T>._;

Expand All @@ -28,8 +26,6 @@ sealed class Result<T> {
}

sealed class LateResult<T> {
const LateResult();

const factory LateResult.pending() = Pending<T>._;
const factory LateResult.success(T value) = Success<T>._;
const factory LateResult.failure([
Expand All @@ -51,8 +47,6 @@ sealed class LateResult<T> {
}

sealed class AsyncResult<T> {
const AsyncResult();

/// Creates a [Success] result.
const factory AsyncResult.success(T value) = Success<T>._;

Expand Down Expand Up @@ -83,8 +77,6 @@ sealed class AsyncResult<T> {
}

class LateAsyncResult<T> {
const LateAsyncResult();

const factory LateAsyncResult.pending() = Pending<T>._;
const factory LateAsyncResult.success(T value) = Success<T>._;
const factory LateAsyncResult.failure([
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: dart_patterns
description: Collection of useful patterns for Dart
version: 0.2.0
version: 0.2.1
repository: https://github.com/lesnitsky/dart_patterns

environment:
Expand Down

0 comments on commit ce6f05a

Please sign in to comment.