Skip to content

Commit

Permalink
Upgrate Gato to 0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdizarepour committed Nov 3, 2021
1 parent e2406ce commit 5fd975e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
# Flutter/Dart/Pub related
**/doc/api/
.dart_tool/
.fvm/
.flutter-plugins
.flutter-plugins-dependencies
.packages
Expand Down
14 changes: 7 additions & 7 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.8.1"
boolean_selector:
dependency: transitive
description:
Expand All @@ -28,7 +28,7 @@ packages:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.3.1"
clock:
dependency: transitive
description:
Expand Down Expand Up @@ -73,14 +73,14 @@ packages:
name: gato
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.4"
version: "0.0.5"
global_configs:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "1.1.1"
version: "1.1.2"
matcher:
dependency: transitive
description:
Expand All @@ -94,7 +94,7 @@ packages:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
version: "1.7.0"
path:
dependency: transitive
description:
Expand All @@ -113,7 +113,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
version: "1.8.1"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -148,7 +148,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19"
version: "0.4.2"
typed_data:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion lib/global_configs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class GlobalConfigs {
/// GlobalConfigs().get('a'); // 1
/// GlobalConfigs().get('b.c'); // 2
/// ```dart
T get<T>(String path, {T Function(dynamic)? converter}) =>
T? get<T>(String path, {T Function(dynamic)? converter}) =>
gato.get(configs, path, converter: converter);

/// Sets new data to the configs
Expand Down
12 changes: 6 additions & 6 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.8.1"
boolean_selector:
dependency: transitive
description:
Expand All @@ -28,7 +28,7 @@ packages:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.3.1"
clock:
dependency: transitive
description:
Expand Down Expand Up @@ -66,7 +66,7 @@ packages:
name: gato
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.4"
version: "0.0.5"
matcher:
dependency: transitive
description:
Expand All @@ -80,7 +80,7 @@ packages:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
version: "1.7.0"
path:
dependency: transitive
description:
Expand All @@ -99,7 +99,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
version: "1.8.1"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -134,7 +134,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19"
version: "0.4.2"
typed_data:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion test/global_configs_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void main() {
GlobalConfigs().clear();
GlobalConfigs().loadFromMap({'color': '0xFFB74093'});

Color color = GlobalConfigs().get<Color>(
Color? color = GlobalConfigs().get<Color>(
'color',
converter: (value) => Color(int.parse(value)),
);
Expand Down

0 comments on commit 5fd975e

Please sign in to comment.