From 60aec372c4860242e91ab34d2c5ec2171ce54239 Mon Sep 17 00:00:00 2001 From: Greg Littlefield Date: Tue, 22 Aug 2023 11:36:57 -0700 Subject: [PATCH] Add comment LHS-typed function declaration --- lib/src/react_client/dart_interop_statics.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/react_client/dart_interop_statics.dart b/lib/src/react_client/dart_interop_statics.dart index b20041ae..4b39d1e1 100644 --- a/lib/src/react_client/dart_interop_statics.dart +++ b/lib/src/react_client/dart_interop_statics.dart @@ -28,6 +28,8 @@ final ReactDartInteropStatics dartInteropStatics = (() { jsThis.setState(newObject()); } + // Use a LHS type to ensure this has the same exact static type + // (including arguments and return types) as initComponentInternal expects. // ignore: omit_local_variable_types, prefer_function_declarations_over_variables final RefMethod getRef = (name) { final ref = getProperty(jsThis.refs, name);