From 0d772fad9607aa388d8ac5a5267b952a65113a9d Mon Sep 17 00:00:00 2001 From: Brett Sutton Date: Sat, 27 Jul 2024 19:10:18 +1000 Subject: [PATCH] Fixed a mistake in the README example that used the wrong type. lint fixes. --- README.md | 2 +- example/overrides.dart | 2 ++ test/src/global_scope_test.dart | 2 ++ test/src/scope_async_test.dart | 4 ++-- test/src/scope_test.dart | 4 ++-- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 79ca554..a0a9656 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ void main() { ..value(ageKey, 18) ..value(heightKey, 182) // centimetres /// single value from factory method - ..single(incomeKey, () => calcIncome) + ..single(incomeKey, () => calcIncome) /// sequence of values from factory method. ..sequence(countKey, () => tracker) diff --git a/example/overrides.dart b/example/overrides.dart index ee79d16..8ec1ad5 100644 --- a/example/overrides.dart +++ b/example/overrides.dart @@ -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 diff --git a/test/src/global_scope_test.dart b/test/src/global_scope_test.dart index aa267df..9a154a8 100644 --- a/test/src/global_scope_test.dart +++ b/test/src/global_scope_test.dart @@ -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 diff --git a/test/src/scope_async_test.dart b/test/src/scope_async_test.dart index f4a4932..704312b 100644 --- a/test/src/scope_async_test.dart +++ b/test/src/scope_async_test.dart @@ -1,3 +1,5 @@ +// ignore_for_file: unreachable_from_main + import 'dart:convert'; import 'dart:math'; @@ -22,7 +24,6 @@ final keyD = ScopeKey('D'); final keyE = ScopeKey('E'); final keyF = ScopeKey('F'); final keyG = ScopeKey('G'); -// ignore: unreachable_from_main final keyGNull = ScopeKey('G?'); final keyI = ScopeKey('I'); final keyInt = ScopeKey('int'); @@ -346,7 +347,6 @@ class G { final E? e; } -// ignore: unreachable_from_main class H { H() : g = use(keyGNull); final G? g; diff --git a/test/src/scope_test.dart b/test/src/scope_test.dart index f06c3aa..7d914bb 100644 --- a/test/src/scope_test.dart +++ b/test/src/scope_test.dart @@ -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 @@ -28,7 +30,6 @@ final keyD = ScopeKey('D'); final keyE = ScopeKey('E'); final keyF = ScopeKey('F'); final keyG = ScopeKey('G'); -// ignore: unreachable_from_main final keyGNull = ScopeKey('G?'); final keyI = ScopeKey('I'); final keyInt = ScopeKey('int'); @@ -341,7 +342,6 @@ class G { final E? e; } -// ignore: unreachable_from_main class H { H() : g = use(keyGNull); final G? g;