File tree Expand file tree Collapse file tree 5 files changed +10
-12
lines changed Expand file tree Collapse file tree 5 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ external ReactClass jsLazy(Promise Function() factory);
18
18
// Only intended for testing purposes, Please do not copy/paste this into repo.
19
19
// This will most likely be added to the PUBLIC api in the future,
20
20
// but needs more testing and Typing decisions to be made first.
21
- ReactJsComponentFactoryProxy lazy (Future <ReactComponentFactoryProxy > Function () factory ) => ReactJsComponentFactoryProxy (
21
+ ReactJsComponentFactoryProxy lazy (Future <ReactComponentFactoryProxy > Function () factory ) =>
22
+ ReactJsComponentFactoryProxy (
22
23
jsLazy (
23
24
allowInterop (
24
25
() => futureToPromise (
Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ typedef ComponentRegistrar2 = ReactDartComponentFactoryProxy2 Function(
55
55
Component2BridgeFactory bridgeFactory,
56
56
});
57
57
58
- typedef FunctionComponentRegistrar = ReactDartFunctionComponentFactoryProxy Function ( DartFunctionComponent componentFactory,
59
- {String displayName});
58
+ typedef FunctionComponentRegistrar = ReactDartFunctionComponentFactoryProxy
59
+ Function ( DartFunctionComponent componentFactory, {String displayName});
60
60
61
61
/// Fragment component that allows the wrapping of children without the necessity of using
62
62
/// an element that adds an additional layer to the DOM (div, span, etc).
@@ -1162,8 +1162,7 @@ abstract class Component2 implements Component {
1162
1162
// Other deprecated and unsupported members
1163
1163
// ******************************************************************************************************************
1164
1164
1165
- UnsupportedError _unsupportedError (String memberName) =>
1166
- UnsupportedError ('Component2 drops support for $memberName ' );
1165
+ UnsupportedError _unsupportedError (String memberName) => UnsupportedError ('Component2 drops support for $memberName ' );
1167
1166
1168
1167
/// Do not use.
1169
1168
///
Original file line number Diff line number Diff line change @@ -87,8 +87,7 @@ class ReactDartComponentFactoryProxy<TComponent extends Component> extends React
87
87
/// into [generateExtendedJsProps] upon [ReactElement] creation.
88
88
final Map defaultProps;
89
89
90
- ReactDartComponentFactoryProxy (this .reactClass)
91
- : defaultProps = reactClass.dartDefaultProps;
90
+ ReactDartComponentFactoryProxy (this .reactClass) : defaultProps = reactClass.dartDefaultProps;
92
91
93
92
@override
94
93
ReactClass get type => reactClass;
@@ -181,8 +180,7 @@ class ReactDartComponentFactoryProxy2<TComponent extends Component2> extends Rea
181
180
@override
182
181
final Map defaultProps;
183
182
184
- ReactDartComponentFactoryProxy2 (this .reactClass)
185
- : defaultProps = JsBackedMap .fromJs (reactClass.defaultProps);
183
+ ReactDartComponentFactoryProxy2 (this .reactClass) : defaultProps = JsBackedMap .fromJs (reactClass.defaultProps);
186
184
187
185
@override
188
186
ReactClass get type => reactClass;
Original file line number Diff line number Diff line change 1
1
@JS ()
2
2
library react_client_factory_utils;
3
3
4
-
5
4
import 'package:js/js.dart' ;
6
5
7
6
import 'package:react/react_client/component_factory.dart' ;
@@ -56,7 +55,7 @@ void convertRefValue2(
56
55
// Use _CallbackRef<Null> to check arity, since parameters could be non-dynamic, and thus
57
56
// would fail the `is _CallbackRef<dynamic>` check.
58
57
// See https://github.com/dart-lang/sdk/issues/34593 for more information on arity checks.
59
- // ignore: prefer_void_to_null
58
+ // ignore: prefer_void_to_null
60
59
} else if (ref is CallbackRef <Null > && convertCallbackRefValue) {
61
60
args[refKey] = allowInterop ((dynamic instance) {
62
61
// Call as dynamic to perform dynamic dispatch, since we can't cast to _CallbackRef<dynamic>,
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ external ReactClass jsLazy(Promise Function() factory);
22
22
// Only intended for testing purposes, Please do not copy/paste this into repo.
23
23
// This will most likely be added to the PUBLIC api in the future,
24
24
// but needs more testing and Typing decisions to be made first.
25
- ReactJsComponentFactoryProxy lazy (Future <ReactComponentFactoryProxy > Function () factory ) => ReactJsComponentFactoryProxy (
25
+ ReactJsComponentFactoryProxy lazy (Future <ReactComponentFactoryProxy > Function () factory ) =>
26
+ ReactJsComponentFactoryProxy (
26
27
jsLazy (
27
28
allowInterop (
28
29
() => futureToPromise (
You can’t perform that action at this time.
0 commit comments