Skip to content

Commit

Permalink
Add comment LHS-typed function declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
greglittlefield-wf committed Aug 22, 2023
1 parent 920f9b1 commit 60aec37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/react_client/dart_interop_statics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 60aec37

Please sign in to comment.