Commit f6f7605
authored
Update element_subclasses.dart
The argument type 'String?' can't be assigned to the parameter type 'Object' because 'String?' is nullable and 'Object' isn't.
To fix this, we need to change the argument type to 'String'.
This will tell the compiler that the argument is a non-nullable string, and the error will be resolved.
Here are some additional details about the error:
- The argument type 'String?' is a nullable string. This means that it can either be a string or null.
- The parameter type 'Object' is a non-nullable object. This means that it can only be an object.
- The compiler is trying to assign the argument 'text' to the parameter 'css', but the argument type is not compatible with the parameter type.
- To fix this, we need to change the argument type to 'String'. This will tell the compiler that the argument is a non-nullable string, and the error will be resolved.1 parent 46b23aa commit f6f7605
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2749 | 2749 | | |
2750 | 2750 | | |
2751 | 2751 | | |
2752 | | - | |
| 2752 | + | |
2753 | 2753 | | |
2754 | 2754 | | |
2755 | 2755 | | |
| |||
0 commit comments