Skip to content

Commit 67122a3

Browse files
sobimorSobhan Moradi
andauthored
Update 'attributes' list type to enable nulls in header style dropdown config. (#1631)
In `select_header_style_dropdown_button_configurations.dart`, the 'attributes' list type has been modified. Now it accepts 'Attribute<int?>' instead of 'Attribute<int>'. This change allows for custom dropdown attributes with a nullable level. Co-authored-by: Sobhan Moradi <[email protected]>
1 parent 97f12c7 commit 67122a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/models/config/toolbar/buttons/select_header_style_dropdown_button_configurations.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class QuillToolbarSelectHeaderStyleDropdownButtonOptions
4949
/// Attribute.header,
5050
/// ]
5151
/// ```
52-
final List<Attribute<int>>? attributes;
52+
final List<Attribute<int?>>? attributes;
5353

5454
QuillToolbarSelectHeaderStyleDropdownButtonOptions copyWith({
5555
ValueChanged<String>? onSelected,

0 commit comments

Comments
 (0)