Skip to content

Commit

Permalink
[WIP] bind the builder argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
tugorez committed Jan 25, 2024
1 parent 8d31cad commit 3e99fc6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/rfw/lib/src/flutter/runtime.dart
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,15 @@ class Runtime extends ChangeNotifier {
/// [LocalWidgetBuilder] rather than a [WidgetDeclaration], and is used to
/// provide source information for local widgets (which otherwise could not be
/// associated with a part of the source). See also [Runtime.blobNodeFor].
_CurriedWidget _applyConstructorAndBindArguments(FullyQualifiedWidgetName fullName, DynamicMap arguments, int stateDepth, Set<FullyQualifiedWidgetName> usedWidgets, BlobNode? source) {
_CurriedWidget _applyConstructorAndBindArguments(
FullyQualifiedWidgetName fullName,
DynamicMap arguments,
int stateDepth,
Set<FullyQualifiedWidgetName> usedWidgets,
BlobNode? source, {
// TODO(tugorez): Fix this.
DynamicMap? builderArg,
}) {
final _ResolvedConstructor? widget = _findConstructor(fullName);
if (widget != null) {
if (widget.constructor is WidgetDeclaration) {
Expand Down

0 comments on commit 3e99fc6

Please sign in to comment.