Update 'attributes' list type to enable nulls in header style dropdown config.

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.
pull/1631/head
Sobhan Moradi 1 year ago
parent 6a4a893454
commit a6a3940840
  1. 2
      lib/src/models/config/toolbar/buttons/select_header_style_dropdown_button_configurations.dart

@ -49,7 +49,7 @@ class QuillToolbarSelectHeaderStyleDropdownButtonOptions
/// Attribute.header,
/// ]
/// ```
final List<Attribute<int>>? attributes;
final List<Attribute<int?>>? attributes;
QuillToolbarSelectHeaderStyleDropdownButtonOptions copyWith({
ValueChanged<String>? onSelected,

Loading…
Cancel
Save