Skip to content

Commit 17e03a7

Browse files
committed
Fix linter problems.
1 parent 9bb2eec commit 17e03a7

File tree

8 files changed

+145
-113
lines changed

8 files changed

+145
-113
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [2.1.1] - 2025-06-14
2+
3+
- Fix linter problems.
4+
15
## [2.1.0] - 2025-04-10
26

37
- Added `pureFold` and `mapFold` operators.

analysis_options.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
include: package:flutterando_analysis/flutter_package.yaml
1+
include: package:lints/recommended.yaml
2+
3+
analyzer:
4+
errors:
5+
avoid_print: ignore
26

37
linter:
48
rules:
59
avoid_catches_without_on_clauses: false
610
use_setters_to_change_properties: false
7-
only_throw_errors: false
11+
only_throw_errors: false

example/pubspec.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ packages:
55
dependency: transitive
66
description:
77
name: meta
8-
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
8+
sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394"
99
url: "https://pub.dev"
1010
source: hosted
11-
version: "1.9.1"
11+
version: "1.17.0"
1212
result_dart:
1313
dependency: "direct main"
1414
description:
1515
path: ".."
1616
relative: true
1717
source: path
18-
version: "1.1.0"
18+
version: "2.1.0"
1919
sdks:
20-
dart: ">=3.0.0 <4.0.0"
20+
dart: ">=3.5.0 <4.0.0"

lib/functions.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
library result_dart;
1+
/// Library containing utility functions for working with ResultDart.
2+
///
3+
/// This library provides helper functions such as `identity`, `id`, `successOf`, and `failureOf`.
4+
library;
25

36
import 'package:result_dart/result_dart.dart';
47

lib/result_dart.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
library result_dart;
1+
/// Library for ResultDart.
2+
///
3+
/// This library exports core components of ResultDart, including async results, base results,
4+
/// extensions, types, and utility classes.
5+
library;
26

37
export 'src/async_result.dart';
48
export 'src/result_dart_base.dart';

lib/src/async_result.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import 'dart:async';
33
import '../result_dart.dart';
44

55
/// `AsyncResultDart<S, E>` represents an asynchronous computation.
6-
typedef AsyncResultDart<S extends Object, F extends Object> = Future<ResultDart<S, F>>;
6+
typedef AsyncResultDart<S extends Object, F extends Object>
7+
= Future<ResultDart<S, F>>;
78

89
/// `AsyncResultDart<S, E>` represents an asynchronous computation.
910
extension AsyncResultDartExtension<S extends Object, F extends Object> //

0 commit comments

Comments
 (0)