File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
lib/src/models/config/toolbar/buttons Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,15 @@ import '../../../themes/quill_icon_theme.dart' show QuillIconTheme;
8
8
import '../../quill_configurations.dart'
9
9
show kDefaultIconSize, kIconButtonFactor;
10
10
11
+ class QuillToolbarBaseButtonExtraOptionsIsToggled extends Equatable {
12
+ const QuillToolbarBaseButtonExtraOptionsIsToggled (this .isToggled);
13
+
14
+ final bool isToggled;
15
+
16
+ @override
17
+ List <Object ?> get props => [isToggled];
18
+ }
19
+
11
20
@immutable
12
21
class QuillToolbarBaseButtonExtraOptions extends Equatable {
13
22
const QuillToolbarBaseButtonExtraOptions ({
Original file line number Diff line number Diff line change @@ -5,14 +5,16 @@ import 'package:flutter/widgets.dart' show Color;
5
5
import 'base.dart' ;
6
6
7
7
class QuillToolbarToggleStyleButtonExtraOptions
8
- extends QuillToolbarBaseButtonExtraOptions {
8
+ extends QuillToolbarBaseButtonExtraOptions
9
+ implements QuillToolbarBaseButtonExtraOptionsIsToggled {
9
10
const QuillToolbarToggleStyleButtonExtraOptions ({
10
11
required super .controller,
11
12
required super .context,
12
13
required super .onPressed,
13
14
required this .isToggled,
14
15
});
15
16
17
+ @override
16
18
final bool isToggled;
17
19
}
18
20
You can’t perform that action at this time.
0 commit comments