Skip to content

Commit

Permalink
Update method_debug_fill_properties.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
tilucasoli committed Jul 11, 2024
1 parent bcada1e commit 4425dc3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ String methodDebugFillProperties({
}) {
final fieldStatements = fields.map((field) {
final fieldName = isInternalRef ? field.asInternalRef : field.name;
if (fieldName == 'decoration') {
return 'properties.add(DiagnosticsProperty(\'$fieldName\', $fieldName, defaultValue: null, expandableValue: true));';
}
return 'properties.add(DiagnosticsProperty(\'$fieldName\', $fieldName, defaultValue: null));';
}).join('\n');

Expand Down

0 comments on commit 4425dc3

Please sign in to comment.