Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply grammar suggestions
  • Loading branch information
tugorez committed Mar 6, 2024
commit 95158b923c866dd184772f811a079c3c1fd14e1e
6 changes: 3 additions & 3 deletions packages/rfw/lib/src/dart/model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ class WidgetBuilderDeclaration extends BlobNode {

/// The callback single argument name.
///
/// In `Builder(builder: (scope) => Container());` [argumentName] is "scope".
/// In `Builder(builder: (scope) => Container());`, [argumentName] is "scope".
final String argumentName;

/// The widget that will be returned when the builder callback is called.
Expand Down Expand Up @@ -559,7 +559,7 @@ class DataReference extends Reference {
/// Reference to the single argument of type [DynamicMap] passed into the widget builder.
///
/// This class is used to represent references to a function argument.
/// In `(scope) => Container(width: scope.width)` this represents "scope.width".
/// In `(scope) => Container(width: scope.width)`, this represents "scope.width".
///
/// See also:
///
Expand All @@ -572,7 +572,7 @@ class WidgetBuilderArgReference extends Reference {

/// A reference to a [WidgetBuilderDeclaration.argumentName].
///
/// In `Builder(builder: (scope) => Text(text: scope.result.text));`
/// In `Builder(builder: (scope) => Text(text: scope.result.text));`,
/// "scope.result.text" is the [WidgetBuilderArgReference].
/// The [argumentName] is "scope" and its [parts] are `["result", "text"]`.
final String argumentName;
Expand Down