Skip to content

Commit 302e433

Browse files
committed
update
1 parent 3da2d0a commit 302e433

File tree

14 files changed

+41
-164
lines changed

14 files changed

+41
-164
lines changed

.github/scripts/update_changelog.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
//.title
22
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
33
//
4-
// Dart/Flutter (DF) Packages by dev-cetera.com & contributors. The use of this
5-
// source code is governed by an MIT-style license described in the LICENSE
6-
// file located in this project's root directory.
4+
// Copyright © dev-cetera.com & contributors.
5+
//
6+
// The use of this source code is governed by an MIT-style license described in
7+
// the LICENSE file located in this project's root directory.
78
//
89
// See: https://opensource.org/license/mit
910
//

.github/workflows/prepare.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
##.title
22
## ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
33
##
4-
## Dart/Flutter (DF) Packages by dev-cetera.com & contributors. The use of this
5-
## source code is governed by an MIT-style license described in the LICENSE
6-
## file located in this project's root directory.
4+
## Copyright © dev-cetera.com & contributors.
5+
##
6+
## The use of this source code is governed by an MIT-style license described in
7+
## the LICENSE file located in this project's root directory.
78
##
89
## See: https://opensource.org/license/mit
910
##

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
##.title
22
## ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
33
##
4-
## Dart/Flutter (DF) Packages by dev-cetera.com & contributors. The use of this
5-
## source code is governed by an MIT-style license described in the LICENSE
6-
## file located in this project's root directory.
4+
## Copyright © dev-cetera.com & contributors.
5+
##
6+
## The use of this source code is governed by an MIT-style license described in
7+
## the LICENSE file located in this project's root directory.
78
##
89
## See: https://opensource.org/license/mit
910
##

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
##.title
22
## ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
33
##
4-
## Dart/Flutter (DF) Packages by dev-cetera.com & contributors. The use of this
5-
## source code is governed by an MIT-style license described in the LICENSE
6-
## file located in this project's root directory.
4+
## Copyright © dev-cetera.com & contributors.
5+
##
6+
## The use of this source code is governed by an MIT-style license described in
7+
## the LICENSE file located in this project's root directory.
78
##
89
## See: https://opensource.org/license/mit
910
##

.vscode/tasks.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

DEVELOPER_NOTES.md

Lines changed: 0 additions & 76 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -8,48 +8,6 @@ Dart & Flutter Packages by dev-cetera.com & contributors.
88

99
---
1010

11-
## Summary
12-
13-
A package inspired by Rust and functional programming, designed to bring structure, clarity, and safety to your Dart applications.
14-
15-
Dart traditionally uses nulls and try-catch blocks, which can introduce runtime errors and complicate error handling. In contrast, languages like Rust prioritize safer error handling through types like Result and Option, ensuring explicit handling at compile time.
16-
17-
This package introduces Result and Option types to Dart, reducing the reliance on try-catch blocks and nulls. By leveraging these constructs, you can write more predictable, maintainable, and error-resilient code.
18-
19-
For a full feature set, please refer to the [API reference](https://pub.dev/documentation/df_safer_dart/).
20-
21-
## Usage Example
22-
23-
Example of avoiding try-catch blocks in Dart, to produce safer code:
24-
25-
```dart
26-
import 'package:df_safer_dart/df_safer_dart.dart';
27-
28-
import 'dart:convert';
29-
import 'package:http/http.dart' as http;
30-
31-
void main() async {
32-
fetchIpAddress().fold(
33-
(value) => print('IP address: $value'),
34-
(error) => print('Error: $error'),
35-
);
36-
}
37-
38-
Result<String> fetchIpAddress() {
39-
return Result(() async {
40-
final response = await http.get(Uri.parse('https://api.ipify.org?format=json'));
41-
// This throws an exception if the status code is not 200.
42-
PanicIf(response.statusCode != 200, 'Failed to fetch IP address');
43-
final data = jsonDecode(response.body);
44-
final ip = data['ip'] as String;
45-
// Return the result.
46-
return ip;
47-
});
48-
}
49-
```
50-
51-
---
52-
5311
## Contributing and Discussions
5412

5513
This is an open-source project, and we warmly welcome contributions from everyone, regardless of experience level. Whether you're a seasoned developer or just starting out, contributing to this project is a fantastic way to learn, share your knowledge, and make a meaningful impact on the community.

analysis_options.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
##.title
22
## ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
33
##
4-
## Dart/Flutter (DF) Packages by dev-cetera.com & contributors. The use of this
5-
## source code is governed by an MIT-style license described in the LICENSE
6-
## file located in this project's root directory.
4+
## Copyright © dev-cetera.com & contributors.
5+
##
6+
## The use of this source code is governed by an MIT-style license described in
7+
## the LICENSE file located in this project's root directory.
78
##
89
## See: https://opensource.org/license/mit
910
##

example/analysis_options.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
##.title
22
## ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
33
##
4-
## Dart/Flutter (DF) Packages by dev-cetera.com & contributors. The use of this
5-
## source code is governed by an MIT-style license described in the LICENSE
6-
## file located in this project's root directory.
4+
## Copyright © dev-cetera.com & contributors.
5+
##
6+
## The use of this source code is governed by an MIT-style license described in
7+
## the LICENSE file located in this project's root directory.
78
##
89
## See: https://opensource.org/license/mit
910
##

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class App extends StatelessWidget {
1212
return MaterialApp(
1313
home: Material(
1414
child: CountryFlagBuilder(
15-
countryCode: CountryCode.VIERKLEUR,
15+
countryCode: CountryCode.AU,
1616
builder: (context, byteData) {
1717
return SvgPicture.memory(byteData);
1818
},

0 commit comments

Comments
 (0)