From 954fca9909d800e89deae1c51103a8eaae1c1527 Mon Sep 17 00:00:00 2001 From: Greg Littlefield Date: Fri, 18 Oct 2024 10:49:16 -0700 Subject: [PATCH] Format --- lib/src/context.dart | 2 +- lib/src/react_test_utils/internal_test_utils.dart | 4 +--- test/react_context_test.dart | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/src/context.dart b/lib/src/context.dart index e57685a8..55aefcf6 100644 --- a/lib/src/context.dart +++ b/lib/src/context.dart @@ -105,7 +105,7 @@ class Context { Context createContext([ TValue? defaultValue, @Deprecated('This has no effect in React 18, and there is no replacement for it.') - int Function(TValue? currentValue, TValue? nextValue)? calculateChangedBits, + int Function(TValue? currentValue, TValue? nextValue)? calculateChangedBits, ]) { final jsDefaultValue = ContextHelpers.jsifyNewContext(defaultValue); diff --git a/lib/src/react_test_utils/internal_test_utils.dart b/lib/src/react_test_utils/internal_test_utils.dart index 7c5d7199..326ed8ef 100644 --- a/lib/src/react_test_utils/internal_test_utils.dart +++ b/lib/src/react_test_utils/internal_test_utils.dart @@ -30,9 +30,7 @@ external bool _isCompositeComponentWithType(/* [1] */ instance, dynamic type); /// Returns `true` if instance is a custom composite component created using `React.createClass()` /// that is of the [ReactComponentFactoryProxy.type] of the provided [componentFactory]. -bool isCompositeComponentWithTypeV2( - /* [1] */ instance, - ReactComponentFactoryProxy componentFactory) { +bool isCompositeComponentWithTypeV2(/* [1] */ instance, ReactComponentFactoryProxy componentFactory) { return _isCompositeComponentWithType(instance, getComponentTypeV2(componentFactory)); } diff --git a/test/react_context_test.dart b/test/react_context_test.dart index e5e81b86..832bfff5 100644 --- a/test/react_context_test.dart +++ b/test/react_context_test.dart @@ -103,7 +103,6 @@ int calculateChangedBits(currentValue, nextValue) { return result; } - // ignore: deprecated_member_use_from_same_package var TestCalculateChangedBitsContext = react.createContext(1, calculateChangedBits);