Skip to content

Commit

Permalink
Fixed a mistake in the README example that used the wrong type. lint …
Browse files Browse the repository at this point in the history
…fixes.
  • Loading branch information
bsutton committed Jul 27, 2024
1 parent 669b4ae commit 0d772fa
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void main() {
..value<int>(ageKey, 18)
..value<int>(heightKey, 182) // centimetres
/// single value from factory method
..single<Db>(incomeKey, () => calcIncome)
..single<Money>(incomeKey, () => calcIncome)
/// sequence of values from factory method.
..sequence<int>(countKey, () => tracker)
Expand Down
2 changes: 2 additions & 0 deletions example/overrides.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// ignore_for_file: unreachable_from_main

/* Copyright (C) S. Brett Sutton - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
Expand Down
2 changes: 2 additions & 0 deletions test/src/global_scope_test.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// ignore_for_file: unreachable_from_main

/* Copyright (C) S. Brett Sutton - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
Expand Down
4 changes: 2 additions & 2 deletions test/src/scope_async_test.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// ignore_for_file: unreachable_from_main

import 'dart:convert';
import 'dart:math';

Expand All @@ -22,7 +24,6 @@ final keyD = ScopeKey<D>('D');
final keyE = ScopeKey<E>('E');
final keyF = ScopeKey<F>('F');
final keyG = ScopeKey<G>('G');
// ignore: unreachable_from_main
final keyGNull = ScopeKey<G?>('G?');
final keyI = ScopeKey<I>('I');
final keyInt = ScopeKey<int>('int');
Expand Down Expand Up @@ -346,7 +347,6 @@ class G {
final E? e;
}

// ignore: unreachable_from_main
class H {
H() : g = use(keyGNull);
final G? g;
Expand Down
4 changes: 2 additions & 2 deletions test/src/scope_test.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// ignore_for_file: unreachable_from_main

/* Copyright (C) S. Brett Sutton - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
Expand Down Expand Up @@ -28,7 +30,6 @@ final keyD = ScopeKey<D>('D');
final keyE = ScopeKey<E>('E');
final keyF = ScopeKey<F>('F');
final keyG = ScopeKey<G>('G');
// ignore: unreachable_from_main
final keyGNull = ScopeKey<G?>('G?');
final keyI = ScopeKey<I>('I');
final keyInt = ScopeKey<int>('int');
Expand Down Expand Up @@ -341,7 +342,6 @@ class G {
final E? e;
}

// ignore: unreachable_from_main
class H {
H() : g = use(keyGNull);
final G? g;
Expand Down

0 comments on commit 0d772fa

Please sign in to comment.