Skip to content

Commit 60aec37

Browse files
Add comment LHS-typed function declaration
1 parent 920f9b1 commit 60aec37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/react_client/dart_interop_statics.dart

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ final ReactDartInteropStatics dartInteropStatics = (() {
2828
jsThis.setState(newObject());
2929
}
3030

31+
// Use a LHS type to ensure this has the same exact static type
32+
// (including arguments and return types) as initComponentInternal expects.
3133
// ignore: omit_local_variable_types, prefer_function_declarations_over_variables
3234
final RefMethod getRef = (name) {
3335
final ref = getProperty(jsThis.refs, name);

0 commit comments

Comments
 (0)